PEAR_Config::store PHP Method

store() public method

Stores configuration data in a layer.
public store ( $layer = 'user', $data = null ) : boolean
return boolean TRUE on success, or PEAR error on failure
    function store($layer = 'user', $data = null)
    {
        return $this->writeConfigFile(null, $layer, $data);
    }

Usage Example

 /**
  * (non-PHPdoc)
  * @see lib/Faett/Core/Interfaces/Faett_Core_Interfaces_Service#setPassword()
  */
 public function setPassword($password, $channel, $layer = 'user')
 {
     // set password for channel
     $this->_config->set('password', $password, $layer, $channel);
     // write config
     $this->_config->store($layer);
 }
All Usage Examples Of PEAR_Config::store