Exemplo n.º 1
0
 /**
  * Get a list of stored styles
  *
  * @access public
  * @return TRUE on success, FALSE on failure - mErrors will contain reason for failure
  */
 function getList()
 {
     $branch = LibertyAttachable::getStorageBranch();
     $ret = array();
     if ($h = opendir(BIT_ROOT_PATH . $branch)) {
         while (FALSE !== ($file = readdir($h))) {
             if (!preg_match("#^\\.#", $file)) {
                 $ret[$file]['url'] = BIT_ROOT_URL . $branch . $file;
                 $ret[$file]['path'] = BIT_ROOT_PATH . $branch . $file;
             }
         }
         closedir($h);
         ksort($ret);
     }
     return $ret;
 }