コード例 #1
0
 /**
  * Read the complete configuration
  *
  * @return array Hierarchic array with each configuration token as a key
  */
 public function readAll()
 {
     if (!$this->isCacheEnabled()) {
         return $this->configIO->readAll();
     }
     $all = $this->cache->get($this->cacheType);
     $sections = $this->getAllSections();
     foreach ($sections as $section) {
         if (!array_key_exists($section, $all)) {
             $all[$section] = $this->read($section);
         }
     }
     return $all;
 }
コード例 #2
0
ファイル: Config.php プロジェクト: BGCX261/zibo-svn-to-git
 /**
  * Gets the complete configuration
  * @return array Tree like array with each configuration key token as a array key
  */
 public function getAll()
 {
     return $this->data = $this->io->readAll();
 }