Commit cd024ee9d1666e9537bcbc666428163f5f920530
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
Showing
1 changed file
with
8 additions
and
3 deletions
ktwebservice/KTDownloadManager.inc.php
| ... | ... | @@ -33,20 +33,25 @@ class KTDownloadManager |
| 33 | 33 | var $random; |
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | - * Enter description here... | |
| 36 | + * Constructor for the download manager. | |
| 37 | 37 | * |
| 38 | 38 | * @param KTAPI_Session $session |
| 39 | 39 | * @return KTDownloadManager |
| 40 | 40 | */ |
| 41 | 41 | function KTDownloadManager() |
| 42 | 42 | { |
| 43 | - $config = KTConfig::getSingleton(); | |
| 43 | + $config = &KTConfig::getSingleton(); | |
| 44 | 44 | |
| 45 | 45 | $this->age = $config->get('webservice/downloadExpiry',5); |
| 46 | 46 | $this->download_url = $config->get('webservice/downloadUrl'); |
| 47 | 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 | 55 | function set_session($session) |
| 51 | 56 | { |
| 52 | 57 | $this->session = $session; |
| ... | ... | @@ -116,7 +121,7 @@ class KTDownloadManager |
| 116 | 121 | $storage =& KTStorageManagerUtil::getSingleton(); |
| 117 | 122 | |
| 118 | 123 | |
| 119 | - $ktapi = new KTAPI(); | |
| 124 | + $ktapi = &new KTAPI(); | |
| 120 | 125 | $res = $ktapi->get_active_session($this->session); |
| 121 | 126 | if (PEAR::isError($res)) |
| 122 | 127 | { | ... | ... |