Phorm/Field/Checkbox.class.php
/**
	 * Validates that the checkbox is checked.
	 *
	 * @param string $value
	 * @return null
	 * @throws Phorm_ValidationError
	 */
Validates that the checkbox is checked.
@param string $value
@return null
@throws Phorm_ValidationError
Validates that the checkbox is checked . @param string $value @return null @throws Phorm_ValidationError
public function validate_required_field($value)
	{
		if (!$this->checked)
		{
			throw new Phorm_ValidationError('validation_required');
		}
	}
public function validate_required_field ( $ value ) { if ( ! $ this -> checked ) { throw new Phorm_ValidationError ( 'validation_required' ) ; } }
Validates that the checkbox is checked.
Validates that the checkbox is checked .