Ignore:
Timestamp:
Sep 12, 2014 7:24:12 PM (11 years ago)
Author:
dungnv
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pro-bachkim-filespace/sourcecode/application/libraries/vservices.php

    r66 r121  
    5252                $this->_curlObj->post($aryParams);
    5353                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                       
    7656        public function __destruct() {
    7757               
Note: See TracChangeset for help on using the changeset viewer.