src/Config/Config.php
public function set($name, $value) {
        $data = array();
        $dataPointer = &$data;
        $parents = explode('.', $name);
        $name = array_pop($parents);
        foreach ($parents as $parent) {
            $dataPointer[$parent] = array();
            $dataPointer = &$dataPointer[$parent];
        }
        $dataPointer[$name] = $value;
        $this->load($data);
    }
public function set($name, $value) {
        $data = array();
        $dataPointer = &$data;
        $parents = explode('.', $name);
        $name = array_pop($parents);
        foreach ($parents as $parent) {
            $dataPointer[$parent] = array();
            $dataPointer = &$dataPointer[$parent];
        }
        $dataPointer[$name] = $value;
        $this->load($data);
    }
public function set ( $ name , $ value ) { $ data = array ( ) ; $ dataPointer = & $ data ; $ parents = explode ( '.' , $ name ) ; $ name = array_pop ( $ parents ) ; foreach ( $ parents as $ parent ) { $ dataPointer [ $ parent ] = array ( ) ; $ dataPointer = & $ dataPointer [ $ parent ] ; } $ dataPointer [ $ name ] = $ value ; $ this -> load ( $ data ) ; }
Set a value in the config. If the value doesn't exist it will be created.
Set a value in the config . If the value doesn t exist it will be created .