Changeset 70 for pro-bachkim-filespace/sourcecode/api.violet.vn
- Timestamp:
- Sep 9, 2014 4:14:10 PM (11 years ago)
- Location:
- pro-bachkim-filespace/sourcecode/api.violet.vn/www/apps/platform/modules/space
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pro-bachkim-filespace/sourcecode/api.violet.vn/www/apps/platform/modules/space/actions/actions.class.php
r69 r70 77 77 } 78 78 rmdir($path); 79 } 80 81 private function CopySpaceDir ($dirObj, $destination, $userId) { 82 $dirId = $dirObj->id; 83 $dirName = $dirObj->name; 84 $aryChidlDirs = $dirObj->childs; 85 $aryChidlFiles = $dirObj->files; 86 87 $c = new Criteria(); 88 $c->add(TblspacecategoryPeer::CAT_ID, $dirId); 89 $c->add(TblspacecategoryPeer::CAT_USER, $userId); 90 $thisCat = TblspacecategoryPeer::doSelectOne($c); 91 var_dump($thisCat); 79 92 } 80 93 … … 218 231 } 219 232 233 public function executeCopy () { 234 $userId = $this->getRequestParameter('userid'); 235 $destination = $this->getRequestParameter('destination'); 236 $data = $this->getRequestParameter('data'); 237 238 $treeObj = json_decode($data); 239 240 $this->CopySpaceDir($treeObj, $destination, $userId); 241 242 } 243 220 244 public function executeUpload() { 221 245 //if (!$this->checkAuthentication()) return sfView::NONE;
Note: See TracChangeset
for help on using the changeset viewer.