models/CiiSettingsModel.php
public function populate($data = array(), $direct = false)
	{
		if (!$direct)
			$data = Cii::get($data, get_class($this));

		foreach ($data as $attribute=>$value)
			$this->set($attribute, $value);

		return true;
	}
public function populate($data = array(), $direct = false)
	{
		if (!$direct)
			$data = Cii::get($data, get_class($this));

		foreach ($data as $attribute=>$value)
			$this->set($attribute, $value);

		return true;
	}
public function populate ( $ data = array ( ) , $ direct = false ) { if ( ! $ direct ) $ data = Cii :: get ( $ data , get_class ( $ this ) ) ; foreach ( $ data as $ attribute => $ value ) $ this -> set ( $ attribute , $ value ) ; return true ; }
Provides a generic method for populating data
@param  array  $data    $_POST data
@param  bool   $direct  If the data should be accessed directly rather than by getting it through the class name
@return bool
Provides a generic method for populating data