Changeset 96 for pro-bachkim-filespace/sourcecode/api.violet.vn/www
- Timestamp:
- Sep 11, 2014 5:03:39 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pro-bachkim-filespace/sourcecode/api.violet.vn/www/apps/platform/modules/space/actions/actions.class.php
r95 r96 262 262 $destination = $this->getRequestParameter('destination'); 263 263 $data = $this->getRequestParameter('data'); 264 $aryNewTree = array( );264 $aryNewTree = array('DIRECTORIES' => array(),'FILES' => array(), ); 265 265 $aryTreeObj = json_decode($data); 266 267 /*if (is_array($aryTreeObj)) {266 267 if (is_array($aryTreeObj)) { 268 268 foreach ($aryTreeObj as $key => $treeObj){; 269 269 if ($treeObj->type == 'directory') { 270 270 //$this->CopySpaceDir($treeObj, $destination, $userId, $aryNewTree); 271 $aryNewTree[ "DIRECTORIES"][] = $treeObj->id;271 $aryNewTree['DIRECTORIES'][] = $treeObj->id; 272 272 } 273 273 else { … … 276 276 } 277 277 } 278 } */278 } 279 279 280 280 //var_export($destination, TRUE); … … 282 282 $this->errMsg = ''; 283 283 $this->errCode = ''; 284 $this->aryNewTree = $ data;284 $this->aryNewTree = $aryNewTree; 285 285 } 286 286
Note: See TracChangeset
for help on using the changeset viewer.