コード例 #1
0
ファイル: ConfigScopes.php プロジェクト: niieani/napkin
 public function returnSettingsList($scope = false)
 {
     $this->listSettings($scope);
     //var_dump($this->settingsList);
     //var_dump($this->pathsList);
     $settingsInPaths = array();
     foreach ($this->pathsList as $path) {
         $scope = StringTools::ReturnLastBit($path);
         if (isset($this->settingsList[$scope])) {
             ArrayTools::mergeArrayElementByPath($settingsInPaths, $path, $this->settingsList[$scope]);
             //var_dump($this->settingsList[$scope]);
         } else {
             LogCLI::Warning('The specification for the stem ' . LogCLI::GREEN . $scope . LogCLI::YELLOW . ' is missing in the parser class.');
             //ArrayTools::mergeArrayElementByPath(&$settingsInPaths, $path, $this->settingsList);
         }
     }
     //var_dump($settingsInPaths);
     return $settingsInPaths;
     //return $this->settingsList;
     //return ArrayTools::GetMultiDimentionalElements();
 }