Changeset 52 for pro-bachkim-filespace


Ignore:
Timestamp:
Aug 21, 2014 11:23:17 AM (11 years ago)
Author:
dungnv
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pro-bachkim-filespace/sourcecode/api.violet.vn/www/apps/platform/modules/space/actions/actions.class.php

    r51 r52  
    166166    $this->errCode = '';
    167167  }
     168 
     169  public function executeDeleteMulti () {
     170        $userId = $this->getRequestParameter('userid');
     171        $aryDel = $this->getRequestParameter('delobj');
     172       
     173        $aryObjs = json_decode($aryDel);
     174       
     175        foreach ($aryObjs as $key => $obj) {
     176                echo $obj->id , ' - ', $obj->name, ' - ', $obj->type;
     177                if (is_array($obj->childDirs)) {
     178                        foreach ($obj->childDirs as $childDir) {
     179                                echo "\n",$childDir->id , ' - ', $childDir->name;
     180                        }
     181                }
     182                if (is_array($obj->childFiles)) {
     183                        foreach ($obj->childFiles as $childFile) {
     184                                echo "\n",$childFile->id , ' - ', $childFile->name, ' - ', $childFile->type;
     185                        }
     186                }
     187        }
     188  }
    168189
    169190  public function executeUpload() {
Note: See TracChangeset for help on using the changeset viewer.