Exemplo n.º 1
0
 /**
  * Loads configuration values into object context.
  * 
  * @param	string		Site identifier
  */
 protected function load_config_ext_values($identifier, $gb_options, $url)
 {
     $changes = array();
     $data = goldbrick_cache_load_ext_config($identifier, array_keys($this->safe_fields), $gb_options, $url);
     foreach ($this->safe_fields as $field => $auto) {
         if (!isset($data[$field])) {
             return;
         }
         if ($auto) {
             $this->{$field} = $data[$field];
         } else {
             if (in_array($field, $this->behaviours)) {
                 $this->{$field}['custom'][$identifier] = $data[$field];
             }
         }
         if ($this->debug) {
             goldbrick_debug("\${$field} loaded from config", $data[$field]);
         }
     }
 }
Exemplo n.º 2
0
 protected function get_config_ext_profile($identifier)
 {
     $data = goldbrick_cache_load_ext_config($identifier, array('info'));
     return $data['info']['profile'];
 }