Exemplo n.º 1
0
 protected function _singleConfig($configs, $type = NULL)
 {
     $configEx = $this->_configEx($configs);
     $name = $configEx->name;
     $key = $configEx->key;
     $const = $configEx->const;
     if ($type === 'multiple') {
         $this->config = array_merge((array) $this->config, (array) Config::get($name, $key));
     } else {
         $this->config = Config::get($name, $key);
     }
     Illustrate($const, $this->config);
 }
Exemplo n.º 2
0
 protected function _singleLang($languages, $type = NULL)
 {
     $langEx = $this->_langEx($languages);
     $const = $langEx->const;
     if ($type === 'multiple') {
         $this->lang = array_merge((array) $this->lang, (array) lang($langEx->name));
     } else {
         $this->lang = lang($langEx->name);
     }
     if ($langEx->key !== NULL) {
         $lang = $this->lang;
         foreach ($lang as $key => $val) {
             $newKey = str_ireplace($langEx->key . ':', NULL, $key);
             $this->lang[$newKey] = $val;
         }
     }
     Illustrate($const, $this->lang);
 }