Exemplo n.º 1
0
 public function fileManagerTable($rootFolderId = 1, $isAllowAdd = null, $isAllowDelete = null)
 {
     $folder = new Sys_Model_File_Folder();
     // echo $folder->select()->where("is_active=1")->where("id=?",$rootFolderId);
     $this->rootFolder = $rootfolder = $folder->fetchRow($folder->select()->where("is_active=1")->where("id=?", $rootFolderId));
     if ($rootfolder instanceof Sys_Model_File_Folder) {
         return $this->reder($rootfolder);
     } else {
         return "Folder Not Available!!";
     }
 }
Exemplo n.º 2
0
 function filePickerDialogAction()
 {
     $this->disableLayout();
     $rootFolderId = $this->_request->getParam('folderid', USER_UPLOAD_FOLDER_ID);
     $folder = new Sys_Model_File_Folder();
     $rootFolder = $folder->fetchRow($folder->select()->where("is_active=1")->where("id=?", $rootFolderId));
     $this->view->rootFolder = $rootFolder;
 }