Commit cd024ee9d1666e9537bcbc666428163f5f920530

Authored by conradverm
1 parent 2e773b59

KTS-1694

"SOAP Webservice Implementation"
Updated. Initial modifications to cater for passing by reference under PHP4.

Reviewed By: Kevin Fourie

git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@6473 c91229c3-7414-0410-bfa2-8a42b809f60b
ktwebservice/KTDownloadManager.inc.php
@@ -33,20 +33,25 @@ class KTDownloadManager @@ -33,20 +33,25 @@ class KTDownloadManager
33 var $random; 33 var $random;
34 34
35 /** 35 /**
36 - * Enter description here... 36 + * Constructor for the download manager.
37 * 37 *
38 * @param KTAPI_Session $session 38 * @param KTAPI_Session $session
39 * @return KTDownloadManager 39 * @return KTDownloadManager
40 */ 40 */
41 function KTDownloadManager() 41 function KTDownloadManager()
42 { 42 {
43 - $config = KTConfig::getSingleton(); 43 + $config = &KTConfig::getSingleton();
44 44
45 $this->age = $config->get('webservice/downloadExpiry',5); 45 $this->age = $config->get('webservice/downloadExpiry',5);
46 $this->download_url = $config->get('webservice/downloadUrl'); 46 $this->download_url = $config->get('webservice/downloadUrl');
47 $this->random=$config->get('webservice/randomKeyText','jhsdf8q1jkjpoiudfs7sd3ds1'); 47 $this->random=$config->get('webservice/randomKeyText','jhsdf8q1jkjpoiudfs7sd3ds1');
48 } 48 }
49 49
  50 + /**
  51 + * Sets the current session.
  52 + *
  53 + * @param string $session
  54 + */
50 function set_session($session) 55 function set_session($session)
51 { 56 {
52 $this->session = $session; 57 $this->session = $session;
@@ -116,7 +121,7 @@ class KTDownloadManager @@ -116,7 +121,7 @@ class KTDownloadManager
116 $storage =& KTStorageManagerUtil::getSingleton(); 121 $storage =& KTStorageManagerUtil::getSingleton();
117 122
118 123
119 - $ktapi = new KTAPI(); 124 + $ktapi = &new KTAPI();
120 $res = $ktapi->get_active_session($this->session); 125 $res = $ktapi->get_active_session($this->session);
121 if (PEAR::isError($res)) 126 if (PEAR::isError($res))
122 { 127 {