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 . '}$/'); }
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."); }
function __construct(jWidget $Parent, $Label = null) { parent::__construct($Parent, $Label); $this->SetValidation('/^[a-zA-Z0-9.!#$%&\'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\\.[a-zA-Z0-9-]+)*$/'); }
function __construct(jWidget $Parent, $Label = null, $MinLength = 3) { parent::__construct($Parent, $Label); $this->SetValidation('/^[a-zA-Z][a-zA-Z0-9_]{' . ($MinLength - 1) . ',}$/'); }