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

    r109 r110  
    8888    $newDir =  $this->CreateSpaceDir($currentCat->getCatName(), $destination, $userId);
    8989   
    90     return $newDir;
    91     //$aryNewTree['DIRECTORIES'][] = $newDir;
     90    $aryNewTree['DIRECTORIES'][] = $newDir;
    9291
    9392    /* if (isset($sourceObj->files)) {
     
    9897    } */
    9998
    100     /* if (isset($sourceObj->childs)) {
     99    if (isset($sourceObj->childs)) {
    101100      $aryChidlDirs = $sourceObj->childs;
    102101      foreach ($aryChidlDirs as $key => $dir) {
    103102        $this->CopySpaceDir($dir, $newDir, $userId, $aryNewTree);
    104103      }
    105     } */
     104    }
    106105  }
    107106
     
    269268   
    270269    if (is_array($aryTreeObj)) {
    271         $newDir = $this->CopySpaceDir($aryTreeObj[0], $destination, $userId, $aryNewTree);
    272         /* foreach ($aryTreeObj as $key => $treeObj){;
     270        //$newDir = $this->CopySpaceDir($aryTreeObj[0], $destination, $userId, $aryNewTree);
     271        foreach ($aryTreeObj as $key => $treeObj){;
    273272                if ($treeObj->type == 'directory') {
    274273                        $this->CopySpaceDir($treeObj, $destination, $userId, $aryNewTree);
     
    279278                        //$aryNewTree['FILES'][] = $treeObj->id;
    280279                }
    281         } */
     280        }
    282281    }
    283282   
Note: See TracChangeset for help on using the changeset viewer.