1
0
mirror of synced 2025-02-16 04:03:16 +03:00
doctrine2/classes/Validator/Notnull.class.php

17 lines
370 B
PHP
Raw Normal View History

2006-04-13 20:37:28 +00:00
<?php
class Doctrine_Validator_Notnull {
/**
* @param Doctrine_Record $record
* @param string $key
* @param mixed $value
* @return boolean
*/
public function validate(Doctrine_Record $record, $key, $value) {
2006-05-26 20:15:27 +00:00
if ($value === null || $value === '')
2006-05-26 11:32:35 +00:00
return false;
return true;
2006-04-13 20:37:28 +00:00
}
}
?>