Changeset 33 for pro-bachkim-filespace
- Timestamp:
- Jul 24, 2014 4:24:16 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
r31 r33 83 83 $userId = $this->getRequestParameter('userid'); 84 84 $filter = $this->getRequestParameter('filter'); 85 $isGetAll = $this->getRequestParameter('isgetall'); 85 86 86 87 // find parent ID of this category … … 96 97 // find subcategory of this category 97 98 $c = new Criteria(); 98 //$c->add(TblspacecategoryPeer::CAT_PARENT, $this->catId); 99 if ($isGetAll == 1) 100 $c->add(TblspacecategoryPeer::CAT_PARENT, $this->catId); 101 99 102 $c->add(TblspacecategoryPeer::CAT_USER, $userId); 100 103 $c->addAscendingOrderByColumn(TblspacecategoryPeer::CAT_NAME); … … 103 106 // find files in this category folder 104 107 $c = new Criteria(); 105 //$c->add(TblspacefilePeer::FILE_CATEGORY, $this->catId); 108 if ($isGetAll == 1) 109 $c->add(TblspacefilePeer::FILE_CATEGORY, $this->catId); 106 110 $c->add(TblspacefilePeer::FILE_USER, $userId); 107 111 if ($filter) $c->add(TblspacefilePeer::FILE_TYPE, explode(';', $filter), Criteria::IN);
Note: See TracChangeset
for help on using the changeset viewer.