Ejemplo n.º 1
0
 function __construct()
 {
     $this->table = 'folders';
     $this->title = 'New folder';
     $this->icon = '/css/fugue/folder-open.png';
     parent::__construct();
 }
Ejemplo n.º 2
0
 public function getDirectory($fullPath)
 {
     $rootInfo = array();
     $scandir = scandir($fullPath);
     foreach ($scandir as $entry) {
         if ($entry != '.' && $entry != '..') {
             if (is_dir($fullPath . $entry)) {
                 $folder = new FolderItem();
                 $folder->getAtribute($fullPath, $entry);
                 $rootInfo[] = $folder;
             }
         }
     }
     foreach ($scandir as $entry) {
         if (is_file($fullPath . $entry)) {
             $file = new FileItem();
             $file->getFileSize($fullPath . $entry);
             $file->getAtribute($fullPath, $entry);
             $rootInfo[] = $file;
         }
     }
     return $rootInfo;
 }
Ejemplo n.º 3
0
 function __construct()
 {
     $this->table = 'notes';
     $this->title = 'New note';
     parent::__construct();
 }