public function init() { $this->virtualRootFolder = new Folder(); $this->virtualRootFolder->id = self::ROOT_ID; $this->virtualRootFolder->title = Yii::t('CfilesModule.base', 'root'); $this->virtualAllPostedFilesFolder = new Folder(); $this->virtualAllPostedFilesFolder->id = self::All_POSTED_FILES_ID; $this->virtualAllPostedFilesFolder->title = Yii::t('CfilesModule.base', 'All posted files'); return parent::init(); }
/** * Automatically loads the underlying contentContainer (User/Space) by using * the uguid/sguid request parameter * * @return boolean */ public function init() { $retVal = parent::init(); $this->accessLevel = $this->getAccessLevel(); return $retVal; }