Changeset 63 for pro-bachkim-filespace/sourcecode/api.violet.vn
- Timestamp:
- Aug 21, 2014 5:21:29 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
r62 r63 197 197 } 198 198 199 if (count($aryFileID) > 0) {200 foreach ($aryFileID as $id) {201 $c = new Criteria();202 $c->add(TblspacefilePeer::FILE_ID, $id);203 $c->add(TblspacefilePeer::FILE_USER, $userId);204 $tblfile = TblspacefilePeer::doSelectOne($c);205 if ($tblfile) $tblfile->delete();206 }207 }208 209 if (count($aryDirID) > 0) {210 foreach ($aryDirID as $id) {211 $c = new Criteria();212 $c->add(TblspacecategoryPeer::CAT_USER, $userId);213 $c->add(TblspacecategoryPeer::CAT_ID, $id);214 TblspacecategoryPeer::doDelete($c);215 }216 }199 // if (count($aryFileID) > 0) { 200 // foreach ($aryFileID as $id) { 201 // $c = new Criteria(); 202 // $c->add(TblspacefilePeer::FILE_ID, $id); 203 // $c->add(TblspacefilePeer::FILE_USER, $userId); 204 // $tblfile = TblspacefilePeer::doSelectOne($c); 205 // if ($tblfile) $tblfile->delete(); 206 // } 207 // } 208 209 // if (count($aryDirID) > 0) { 210 // foreach ($aryDirID as $id) { 211 // $c = new Criteria(); 212 // $c->add(TblspacecategoryPeer::CAT_USER, $userId); 213 // $c->add(TblspacecategoryPeer::CAT_ID, $id); 214 // TblspacecategoryPeer::doDelete($c); 215 // } 216 // } 217 217 218 218 $this->errMsg = '';
Note: See TracChangeset
for help on using the changeset viewer.