Changeset 57
- Timestamp:
- Aug 21, 2014 3:30:57 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
r55 r57 170 170 $userId = $this->getRequestParameter('userid'); 171 171 $aryDel = $this->getRequestParameter('delobj'); 172 173 172 $this->aryDeletedObj = json_decode($aryDel); 173 174 $aryDirID = array(); 175 $aryFileID = array(); 176 177 if (is_array($this->aryDeletedObj)) { 178 foreach ($this->aryDeletedObj as $key => $obj) { 179 if ($obj->type == 'directory') { 180 if (is_array($obj->childDirs)) { 181 foreach ($obj->childDirs as $childDir) { 182 $aryDirID[] = $childDir->id; 183 } 184 } 185 186 if (is_array($obj->childFiles)) { 187 foreach ($obj->childFiles as $childFile) { 188 $aryFileID[] = $childFile->id; 189 } 190 } 191 $aryDirID[] = $obj->id; 192 } 193 else { 194 $aryFileID[] = $obj->id; 195 } 196 } 197 } 198 199 var_dump($aryDirID); 200 174 201 $this->errMsg = ''; 175 202 $this->errCode = '';
Note: See TracChangeset
for help on using the changeset viewer.