Changeset 33 for pro-bachkim-filespace


Ignore:
Timestamp:
Jul 24, 2014 4:24:16 PM (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

    r31 r33  
    8383    $userId = $this->getRequestParameter('userid');
    8484    $filter = $this->getRequestParameter('filter');
     85    $isGetAll = $this->getRequestParameter('isgetall');
    8586   
    8687    // find parent ID of this category
     
    9697    // find subcategory of this category
    9798    $c = new Criteria();
    98     //$c->add(TblspacecategoryPeer::CAT_PARENT, $this->catId);
     99    if ($isGetAll == 1)
     100        $c->add(TblspacecategoryPeer::CAT_PARENT, $this->catId);
     101   
    99102    $c->add(TblspacecategoryPeer::CAT_USER, $userId);
    100103    $c->addAscendingOrderByColumn(TblspacecategoryPeer::CAT_NAME);
     
    103106    // find files in this category folder
    104107    $c = new Criteria();
    105     //$c->add(TblspacefilePeer::FILE_CATEGORY, $this->catId);
     108    if ($isGetAll == 1)
     109        $c->add(TblspacefilePeer::FILE_CATEGORY, $this->catId);
    106110    $c->add(TblspacefilePeer::FILE_USER, $userId);
    107111    if ($filter) $c->add(TblspacefilePeer::FILE_TYPE, explode(';', $filter), Criteria::IN);
Note: See TracChangeset for help on using the changeset viewer.