예제 #1
0
 function __construct(jWidget $Parent, $Label = null, $minLength = 0, $maxLength = -1)
 {
     parent::__construct($Parent, $Label);
     if ($maxLength === -1) {
         $maxLength = 4096;
     }
     $this->SetValidation('/^[0-9]{' . $minLength . ',' . $maxLength . '}$/');
 }
예제 #2
0
 function __construct(jWidget $Parent, $Label = null)
 {
     parent::__construct($Parent, $Label);
     $this->SetValidation('/^\\d{4}-\\d{2}-\\d{2}$/');
     $this->SetDescription($this->Description . " Enter date in YYYY-MM-DD format.");
 }
예제 #3
0
 function __construct(jWidget $Parent, $Label = null)
 {
     parent::__construct($Parent, $Label);
     $this->SetValidation('/^[a-zA-Z0-9.!#$%&\'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\\.[a-zA-Z0-9-]+)*$/');
 }
예제 #4
0
 function __construct(jWidget $Parent, $Label = null, $MinLength = 3)
 {
     parent::__construct($Parent, $Label);
     $this->SetValidation('/^[a-zA-Z][a-zA-Z0-9_]{' . ($MinLength - 1) . ',}$/');
 }