framework/web/form/CFormElement.php
public function configure($config)
	{
		if(is_string($config))
			$config=require(Yii::getPathOfAlias($config).'.php');
		if(is_array($config))
		{
			foreach($config as $name=>$value)
				$this->$name=$value;
		}
	}
public function configure($config)
	{
		if(is_string($config))
			$config=require(Yii::getPathOfAlias($config).'.php');
		if(is_array($config))
		{
			foreach($config as $name=>$value)
				$this->$name=$value;
		}
	}
public function configure ( $ config ) { if ( is_string ( $ config ) ) $ config = require ( Yii :: getPathOfAlias ( $ config ) . '.php' ) ; if ( is_array ( $ config ) ) { foreach ( $ config as $ name => $ value ) $ this -> $ name = $ value ; } }
Configures this object with property initial values.
@param mixed $config the configuration for this object. This can be an array
representing the property names and their initial values.
It can also be a string representing the file name of the PHP script
that returns a configuration array.
Configures this object with property initial values .