src/bbn/cdn/config.php
private function _set_cfg(){
    if ( \is_array($this->cfg) ){
      $p =& $this->cfg['params'];
      $components = false;
      if ( !empty($p['components']) ){
        $components = explode(',', $p['components']);
      }
      $this->cfg = bbn\x::merge_arrays($this->cfg, [
        'test' => !empty($p['test']),
        'lang' => empty($p['lang']) ? self::$default_language : $p['lang'],
        'nocompil' => !empty($p['nocompil']),
        'has_css' => !isset($p['css']) || $p['css'],
        'has_dep' => !isset($p['dep']) || $p['dep'],
        'latest' => isset($p['latest']) ? 1 : false,
        'is_component' => !empty($p['components']),
        'components' => $components
      ]);
    }
  }
private function _set_cfg(){
    if ( \is_array($this->cfg) ){
      $p =& $this->cfg['params'];
      $components = false;
      if ( !empty($p['components']) ){
        $components = explode(',', $p['components']);
      }
      $this->cfg = bbn\x::merge_arrays($this->cfg, [
        'test' => !empty($p['test']),
        'lang' => empty($p['lang']) ? self::$default_language : $p['lang'],
        'nocompil' => !empty($p['nocompil']),
        'has_css' => !isset($p['css']) || $p['css'],
        'has_dep' => !isset($p['dep']) || $p['dep'],
        'latest' => isset($p['latest']) ? 1 : false,
        'is_component' => !empty($p['components']),
        'components' => $components
      ]);
    }
  }
private function _set_cfg ( ) { if ( \ is_array ( $ this -> cfg ) ) { $ p = & $ this -> cfg [ 'params' ] ; $ components = false ; if ( ! empty ( $ p [ 'components' ] ) ) { $ components = explode ( ',' , $ p [ 'components' ] ) ; } $ this -> cfg = bbn \ x :: merge_arrays ( $ this -> cfg , [ 'test' => ! empty ( $ p [ 'test' ] ) , 'lang' => empty ( $ p [ 'lang' ] ) ? self :: $ default_language : $ p [ 'lang' ] , 'nocompil' => ! empty ( $ p [ 'nocompil' ] ) , 'has_css' => ! isset ( $ p [ 'css' ] ) || $ p [ 'css' ] , 'has_dep' => ! isset ( $ p [ 'dep' ] ) || $ p [ 'dep' ] , 'latest' => isset ( $ p [ 'latest' ] ) ? 1 : false , 'is_component' => ! empty ( $ p [ 'components' ] ) , 'components' => $ components ] ) ; } }
Returns an array with all the - default or no - config parameters based on the sent ones
Returns an array with all the - default or no - config parameters based on the sent ones