コード例 #1
0
ファイル: FileListener.php プロジェクト: svobodni/web
 /**
  * @param BaseFileEntity $entity
  */
 protected function setup(BaseFileEntity $entity)
 {
     $entity->setPublicDir($this->publicDir);
     $entity->setPublicUrl($this->publicUrl);
     $entity->setProtectedDir($this->protectedDir);
     $entity->setUser($this->getUser());
 }
コード例 #2
0
ファイル: FileBrowserControl.php プロジェクト: svobodni/web
 /**
  * @param BaseFileEntity $entity
  * @return BaseFileEntity
  */
 public function configureFileEntity(BaseFileEntity $entity)
 {
     if ($this->key) {
         $entity->setParent($this->getCurrentDir());
         $entity->copyPermission();
     }
     return $entity;
 }
コード例 #3
0
ファイル: DirEntity.php プロジェクト: svobodni/web
 public function generatePath()
 {
     parent::generatePath();
     foreach ($this->children as $item) {
         $item->generatePath();
     }
     foreach ($this->files as $item) {
         $item->generatePath();
     }
 }