Ejemplo n.º 1
0
 /**
  * Returns true if this field's value passes validation. This function will always return true.
  * @exception PSU\Model\ValidationException Thrown if validation fails.
  * @return boolean
  */
 public function validate($return = true)
 {
     $filter_class = $this->clean_class();
     $action = $filter_class . '_validate_' . $this->name->value;
     if (\PSU::has_action($action)) {
         \PSU::do_action($action, $this);
     }
     //end if
     return $return;
 }