src/bbn/html/element.php
protected function update()
  {
    $this->cfg = [];
    foreach ( $this as $key => $var ){
      if ( $key !== 'cfg' && !\is_null($var) ){
        if ( \is_array($var) ){
          foreach ( $var as $k => $v ){
            if ( !isset($this->cfg[$key]) ){
              $this->cfg[$key] = [];
            }
            if ( !\is_null($v) ){
              $this->cfg[$key][$k] = $v;
            }
          }
        }
        else{
          $this->cfg[$key] = $var;
        }
      }
    }
    return $this;
  }
protected function update()
  {
    $this->cfg = [];
    foreach ( $this as $key => $var ){
      if ( $key !== 'cfg' && !\is_null($var) ){
        if ( \is_array($var) ){
          foreach ( $var as $k => $v ){
            if ( !isset($this->cfg[$key]) ){
              $this->cfg[$key] = [];
            }
            if ( !\is_null($v) ){
              $this->cfg[$key][$k] = $v;
            }
          }
        }
        else{
          $this->cfg[$key] = $var;
        }
      }
    }
    return $this;
  }
protected function update ( ) { $ this -> cfg = [ ] ; foreach ( $ this as $ key => $ var ) { if ( $ key !== 'cfg' && ! \ is_null ( $ var ) ) { if ( \ is_array ( $ var ) ) { foreach ( $ var as $ k => $ v ) { if ( ! isset ( $ this -> cfg [ $ key ] ) ) { $ this -> cfg [ $ key ] = [ ] ; } if ( ! \ is_null ( $ v ) ) { $ this -> cfg [ $ key ] [ $ k ] = $ v ; } } } else { $ this -> cfg [ $ key ] = $ var ; } } } return $ this ; }
Sets the configuration property according to the current configuration

@return bbn\html\element
Sets the configuration property according to the current configuration