Class KTDownloadManager

Description

KTDownloadManager manages files in the download_files table.

Located in /ktwebservice/KTDownloadManager.inc.php (line 33)


	
			
Variable Summary
mixed $age
mixed $random
mixed $session
Method Summary
string allow_download (KTAPI_Document $document, [ $content_version = null])
string build_url (string $hash, int $documentid, int $userid)
void cleanup ()
void download ( $document_id,  $hash, [ $version = null])
void set_session (string $session)
Variables
mixed $age (line 36)
mixed $download_url (line 37)
mixed $random (line 38)
mixed $session (line 35)
Methods
Constructor KTDownloadManager (line 46)

Constructor for the download manager.

KTDownloadManager KTDownloadManager (KTAPI_Session $session)
allow_download (line 72)

This returns

  • access: public
string allow_download (KTAPI_Document $document, [ $content_version = null])
build_url (line 101)

This returns the url used to download a document.

string build_url (string $hash, int $documentid, int $userid)
  • string $hash
  • int $documentid
  • int $userid
cleanup (line 168)

This will remove any temporary files that have not been dealt with in the correct timeframe.

  • access: public
void cleanup ()
download (line 112)

This starts a download.

  • access: public
void download ( $document_id,  $hash, [ $version = null])
  • $document_id
  • $hash
  • $version
set_session (line 60)

Sets the current session.

void set_session (string $session)
  • string $session

Documentation generated on Sun, 22 Apr 2007 02:30:54 +0200 by phpDocumentor 1.3.2