Changeset 66 for pro-bachkim-filespace/sourcecode/application/libraries
- Timestamp:
- Aug 25, 2014 7:37:45 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pro-bachkim-filespace/sourcecode/application/libraries/vservices.php
r42 r66 6 6 private $_curlObj; 7 7 private $_userId; 8 private $_password; 8 9 9 10 public function __construct() { … … 23 24 } 24 25 26 public function setPassword ($password) { 27 $this->_password = $password; 28 } 29 25 30 public function getPrivateTree () { 26 31 $this->_curlObj->create($this->_apiUrl. 'space/dir/isgetall/1'); … … 30 35 $post = array('userid' => $this->_userId); 31 36 $this->_curlObj->post($post); 37 return $this->_curlObj->execute(); 38 } 39 40 /** 41 * $aryParams 42 * 43 * @param unknown $action 44 * @param unknown $aryParams 45 */ 46 public function actionExecute ($action, $aryParams = array()) { 47 $this->_curlObj->create($this->_apiUrl. 'space/'.$action); 48 $this->_curlObj->option(CURLOPT_BUFFERSIZE, 10); 49 $this->_curlObj->options(array(CURLOPT_BUFFERSIZE => 10)); 50 51 $aryParams['userid'] = $this->_userId; 52 $this->_curlObj->post($aryParams); 32 53 return $this->_curlObj->execute(); 33 54 } … … 42 63 return $this->_curlObj->execute(); 43 64 } 65 66 public function deleteDir ($dirId) { 67 $this->_curlObj->create($this->_apiUrl. 'space/delete'); 68 $this->_curlObj->option(CURLOPT_BUFFERSIZE, 10); 69 $this->_curlObj->options(array(CURLOPT_BUFFERSIZE => 10)); 70 71 $post = array('userid' => $this->_userId, 'type' => 'folder', 'id' => $dirId); 72 $this->_curlObj->post($post); 73 return $this->_curlObj->execute(); 74 } 44 75 45 76 public function __destruct() {
Note: See TracChangeset
for help on using the changeset viewer.