コード例 #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!!";
     }
 }
コード例 #2
0
ファイル: Folder.php プロジェクト: hugi2002/mylibrary
 function getSubFolderList()
 {
     $folder = new Sys_Model_File_Folder();
     $result = $folder->fetchAll($folder->select()->where("is_active=1")->where("folder_parent_id=?", $this->id));
     return $result;
 }
コード例 #3
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;
 }