Пример #1
0
 public function getNodes(array $config = array())
 {
     $config['path'] = $this->getObject('com:files.adapter.folder', array('path' => $config['path']))->getRealPath();
     try {
         $results = ComFilesIteratorDirectory::getNodes($config);
     } catch (Exception $e) {
         return false;
     }
     return $results;
 }
Пример #2
0
 public function getNodes(array $config = array())
 {
     $config['path'] = $this->getService('com://admin/files.adapter.local.folder', array('path' => $config['path']))->getRealPath();
     try {
         $results = ComFilesIteratorDirectory::getNodes($config);
     } catch (Exception $e) {
         return false;
     }
     foreach ($results as &$result) {
         $result = rawurldecode($result);
     }
     return $results;
 }