Changeset 121 for pro-bachkim-filespace/sourcecode/application/libraries
- Timestamp:
- Sep 12, 2014 7:24:12 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pro-bachkim-filespace/sourcecode/application/libraries/vservices.php
r66 r121 52 52 $this->_curlObj->post($aryParams); 53 53 return $this->_curlObj->execute(); 54 } 55 56 public function createDir ($dirName, $parentId) { 57 $this->_curlObj->create($this->_apiUrl. 'space/mkdir'); 58 $this->_curlObj->option(CURLOPT_BUFFERSIZE, 10); 59 $this->_curlObj->options(array(CURLOPT_BUFFERSIZE => 10)); 60 61 $post = array('userid' => $this->_userId, 'parent_id' => $parentId, 'name' => $dirName); 62 $this->_curlObj->post($post); 63 return $this->_curlObj->execute(); 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 } 75 54 } 55 76 56 public function __destruct() { 77 57
Note: See TracChangeset
for help on using the changeset viewer.