Example #1
0
 /**
  * Get the names of all the sections in the configuration
  * @return array Array with the names of all the ini files in the configuration directory, withouth the extension
  */
 public function getAllSections()
 {
     $sections = array();
     $includePaths = $this->browser->getIncludePaths();
     foreach ($includePaths as $includePath) {
         $path = new File($includePath, Zibo::DIRECTORY_CONFIG);
         $sections = Structure::merge($sections, $this->getDirectorySections($path));
     }
     $path = new File($this->getEnvironmentPath());
     $sections = Structure::merge($sections, $this->getDirectorySections($path));
     return $sections;
 }
Example #2
0
 /**
  * Get the paths of the Zibo file system structure
  * @param boolean $refresh true to reread the include paths, false to use a cached list
  * @return array Array with File objects containing the paths of the Zibo file system structure
  */
 public function getIncludePaths($refresh = false)
 {
     return $this->browser->getIncludePaths($refresh);
 }