framework/gii/CCodeModel.php
public function validateReservedWord($attribute,$params)
	{
		$value=$this->$attribute;
		if(in_array(strtolower($value),self::$keywords))
			$this->addError($attribute, $this->getAttributeLabel($attribute).' cannot take a reserved PHP keyword.');
	}
public function validateReservedWord($attribute,$params)
	{
		$value=$this->$attribute;
		if(in_array(strtolower($value),self::$keywords))
			$this->addError($attribute, $this->getAttributeLabel($attribute).' cannot take a reserved PHP keyword.');
	}
public function validateReservedWord ( $ attribute , $ params ) { $ value = $ this -> $ attribute ; if ( in_array ( strtolower ( $ value ) , self :: $ keywords ) ) $ this -> addError ( $ attribute , $ this -> getAttributeLabel ( $ attribute ) . ' cannot take a reserved PHP keyword.' ) ; }
Validates an attribute to make sure it is not taking a PHP reserved keyword.
@param string $attribute the attribute to be validated
@param array $params validation parameters
Validates an attribute to make sure it is not taking a PHP reserved keyword .