Posted By


rnauka on 09/22/14

Tagged


Statistics


Viewed 34 times
Favorited by 0 user(s)

Zend_Form_Element isValid


/ Published in: PHP
Save to your folder(s)

Zend_Form_Element isValidreview


Copy this code and paste it in your HTML
  1. public function isValid($value, $context = null)
  2. {
  3. $this->setValue($value);
  4. $value = $this->getValue();
  5.  
  6. if ((('' === $value) || (null === $value))
  7. && !$this->isRequired()
  8. && $this->getAllowEmpty()
  9. ) {
  10. return true;
  11. }
  12. //....
  13.  
  14. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.