framework/validators/CBooleanValidator.php
public function validateValue($value)
	{
		if ($this->strict)
			return $value===$this->trueValue || $value===$this->falseValue;
		else
			return $value==$this->trueValue || $value==$this->falseValue;
	}
public function validateValue($value)
	{
		if ($this->strict)
			return $value===$this->trueValue || $value===$this->falseValue;
		else
			return $value==$this->trueValue || $value==$this->falseValue;
	}
public function validateValue ( $ value ) { if ( $ this -> strict ) return $ value === $ this -> trueValue || $ value === $ this -> falseValue ; else return $ value == $ this -> trueValue || $ value == $ this -> falseValue ; }
Validates a static value to see if it is a valid boolean.
This method is provided so that you can call it directly without going
through the model validation rule mechanism.

Note that this method does not respect the {@link allowEmpty} property.

@param mixed $value the value to be validated
@return boolean whether the value is a valid boolean
@since 1.1.17
Validates a static value to see if it is a valid boolean . This method is provided so that you can call it directly without going through the model validation rule mechanism .