function __construct() { $this->table = 'folders'; $this->title = 'New folder'; $this->icon = '/css/fugue/folder-open.png'; parent::__construct(); }
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; }
function __construct() { $this->table = 'notes'; $this->title = 'New note'; parent::__construct(); }