Пример #1
0
 /**
  * Get the item mime/content-type string
  */
 public function getInfo()
 {
     $time = $this->getTimestamps();
     $title = Sanitize::toTitle($this->_name);
     $title = Sanitize::toCaps($title);
     return array('path' => $this->_path, 'parent' => $this->_parent, 'extension' => $this->_extension, 'name' => $this->_name, 'filename' => $this->getFileName(), 'type' => $this->getType(), 'perms' => $this->getPermissions(), 'owner' => $this->getOwner(), 'mimetype' => $this->getMimeType(), 'category' => $this->getCategory(), 'title' => $title, 'created' => $time['created'], 'modified' => $time['modified'], 'accessed' => $time['accessed'], 'writable' => is_writable($this->_path));
 }