Location: PHPKode > scripts > DABAJAX Toolkit > dabajax-toolkit/BusValidator.example.php
<?php
   require_once( "AjaxOptionsValidator.interface.php" );
   /**
     * UserValidator - example of a class that implements AjaxOptionsValidator
   **/
   class UserValidator implements AjaxOptionsValidator
   {
      private $con = null;
      
      public function __construct( $con ) {
         $this->con = $con;
      }
      
      public function isValid( $options ) {      
         return false;
      }
      
      public function getMessage() {
         return "Usuario invalido";
      }
   }

?>
Return current item: DABAJAX Toolkit