1
0
mirror of synced 2025-01-19 15:01:40 +03:00
doctrine2/classes/Validator/Notblank.class.php
doctrine b6e9365743
2006-04-16 08:41:45 +00:00

19 lines
548 B
PHP

<?php
class Doctrine_Validator_Notblank {
/**
* @param Doctrine_Record $record
* @param string $key
* @param mixed $value
* @return boolean
*/
public function validate(Doctrine_Record $record, $key, $value) {
$string = str_replace("\n","",$value);
$string = str_replace("\r","",$string);
$string = str_replace("\t","",$string);
$string = str_replace("\s","",$string);
$string = str_replace(" ","",$string);
if($string == "") return true;
}
}
?>