framework/validators/CFileValidator.php
protected function emptyAttribute($object, $attribute)
	{
		if($this->safe) 
			$object->$attribute=null;

		if(!$this->allowEmpty)
		{
			$message=$this->message!==null?$this->message : Yii::t('yii','{attribute} cannot be blank.');
			$this->addError($object,$attribute,$message);
		}
	}
protected function emptyAttribute($object, $attribute)
	{
		if($this->safe) 
			$object->$attribute=null;

		if(!$this->allowEmpty)
		{
			$message=$this->message!==null?$this->message : Yii::t('yii','{attribute} cannot be blank.');
			$this->addError($object,$attribute,$message);
		}
	}
protected function emptyAttribute ( $ object , $ attribute ) { if ( $ this -> safe ) $ object -> $ attribute = null ; if ( ! $ this -> allowEmpty ) { $ message = $ this -> message !== null ? $ this -> message : Yii :: t ( 'yii' , '{attribute} cannot be blank.' ) ; $ this -> addError ( $ object , $ attribute , $ message ) ; } }
Raises an error to inform end user about blank attribute.
Sets the owner attribute to null to prevent setting arbitrary values.
@param CModel $object the object being validated
@param string $attribute the attribute being validated
Raises an error to inform end user about blank attribute . Sets the owner attribute to null to prevent setting arbitrary values .