Ignore:
Timestamp:
Sep 9, 2014 4:14:10 PM (11 years ago)
Author:
dungnv
Message:
 
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  
    7777    }
    7878    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);
    7992  }
    8093
     
    218231  }
    219232
     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
    220244  public function executeUpload() {
    221245    //if (!$this->checkAuthentication()) return sfView::NONE;
Note: See TracChangeset for help on using the changeset viewer.