Phorm/Field/Scan.class.php
/**
	 * Validates that the value matches the sscanf format.
	 *
	 * @param string $value
	 * @return null
	 * @throws Phorm_ValidationError
	 */
Validates that the value matches the sscanf format.

@param string $value
@return null
@throws Phorm_ValidationError
Validates that the value matches the sscanf format . @param string $value @return null @throws Phorm_ValidationError
public function validate($value)
	{
		parent::validate($value);
		$this->matched = sscanf($value, $this->format);
		if( empty($this->matched) )
		{
			throw new Phorm_ValidationError($this->message);
		}
	}
public function validate ( $ value ) { parent :: validate ( $ value ) ; $ this -> matched = sscanf ( $ value , $ this -> format ) ; if ( empty ( $ this -> matched ) ) { throw new Phorm_ValidationError ( $ this -> message ) ; } }
Validates that the value matches the sscanf format.
Validates that the value matches the sscanf format .