Changeset 100 for pro-bachkim-filespace


Ignore:
Timestamp:
Sep 11, 2014 5:20:31 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

    r99 r100  
    8585    $c->add(TblspacecategoryPeer::CAT_USER, $userId);
    8686    $currentCat = TblspacecategoryPeer::doSelectOne($c);
    87     var_dump($currentCat);
    88     $newDir =  $this->CreateSpaceDir($currentCat->getCatName(), $destination, $userId);
    89     $aryNewTree['DIRECTORIES'][] = $newDir;
     87    return $currentCat;
     88    //$newDir =  $this->CreateSpaceDir($currentCat->getCatName(), $destination, $userId);
     89    //$aryNewTree['DIRECTORIES'][] = $newDir;
    9090
    9191    /* if (isset($sourceObj->files)) {
     
    267267   
    268268    if (is_array($aryTreeObj)) {
    269         foreach ($aryTreeObj as $key => $treeObj){;
     269        $newDir = $this->CopySpaceDir($treeObj[0], $destination, $userId, $aryNewTree);
     270        /* foreach ($aryTreeObj as $key => $treeObj){;
    270271                if ($treeObj->type == 'directory') {
    271272                        $this->CopySpaceDir($treeObj, $destination, $userId, $aryNewTree);
     
    276277                        //$aryNewTree['FILES'][] = $treeObj->id;
    277278                }
    278         }
     279        } */
    279280    }
    280281   
     
    283284    $this->errMsg = '';
    284285    $this->errCode = '';
    285     $this->aryNewTree = $aryNewTree;
     286    $this->aryNewTree = $newDir;
    286287  }
    287288
Note: See TracChangeset for help on using the changeset viewer.