/** * Construct a new website validator instance * @param array $options options for this instance * @return null */ public function __construct(array $options = array()) { parent::__construct($options); $this->regex = '/^' . $this->regexHttp . '$/'; $this->code = self::CODE; $this->message = self::MESSAGE; }
/** * Construct a new e-mail address validator * @param array $options options for this validator * @return null */ public function __construct(array $options = array()) { parent::__construct($options); $regexEmail = '(' . $this->regexAlphaDigit . '|' . $this->regexSafe . ')+@' . $this->regexHostName; $this->regex = '/^' . $regexEmail . '$/'; $this->code = self::CODE; $this->message = self::MESSAGE; }
/** * Construct the validator * @param array $options options for the validator, not applicable on this implementation * @return null */ public function __construct(array $options = array()) { parent::__construct($options); $tokenChars = $this->regexAlphaDigit . '|[_-]|\\.'; $regexDatabase = '(\\/(' . $tokenChars . ')+)*\\/(' . $tokenChars . ')+'; $regexDsn = $this->regexScheme . ':\\/\\/(' . $this->regexLogin . ')?' . $regexDatabase; $this->regex = '/^' . $regexDsn . '$/'; $this->code = self::CODE; $this->message = self::MESSAGE; }
public function __construct() { parent::__construct(); }