public function itemProps($itemId)
 {
     $itemId = trim($itemId, '/\\');
     if ($this->fs->allow($itemId, $real)) {
         return array_merge(parent::itemProps($itemId), array('inode' => $this->hasChildren($real, $icon), 'icon' => $icon, 'size' => is_file($real) ? formatSizeUnits(filesize($real)) : '', 'type' => recongnizeType($real), 'random' => mt_rand(0, 99)));
     }
     return parent::itemProps($itemId);
 }
Exemple #2
0
 public function itemProps($itemId)
 {
     $itemId = trim($itemId, '/\\');
     if ($this->fs->allow($itemId, $real)) {
         return array_merge(parent::itemProps($itemId), array('inode' => $this->hasChildren($real, $icon), 'icon' => $icon, 'random' => mt_rand(0, 99)));
     }
     return parent::itemProps($itemId);
 }
Exemple #3
0
 public function itemProps($itemId)
 {
     $path = explode('.', $itemId);
     $type = array_shift($path);
     switch ($type) {
         case 'folder':
             return array_merge(parent::itemProps($itemId), array('inode' => true, 'icon' => 'folder'));
         case 'file':
             return array_merge(parent::itemProps($itemId), array('inode' => false, 'icon' => 'file'));
     }
     return parent::itemProps($itemId);
 }