Ejemplo n.º 1
0
 /**
  * Returns the current configuration.
  * 
  * @return array Current configuration
  */
 public function get_config()
 {
     $this->update();
     $tmp = \bbn\tools::remove_empty($this->cfg);
     if (isset($tmp['content']) && is_array($tmp['content'])) {
         foreach ($tmp['content'] as $i => $c) {
             if (is_object($c)) {
                 if (method_exists($c, 'get_config')) {
                     $tmp['content'][$i] = $c->get_config();
                 }
             }
         }
     }
     return $tmp;
 }