/** * * @param string $message * @param int|boolean $min minimun string length or false for no limit * @param int|boolean $max maximun string length or false for no limit */ public function __construct($message, $min = false, $max = false, $required = null) { parent::__construct($message); $this->min = $min; $this->max = $max; $this->required = $required; }
/** * Constructor * * @param string $passwordDontMatchMessage * @param string $emptyPasswordMessage * @param boolean $exists * @param string $confirm * @param string $empty */ public function __construct($passwordDontMatchMessage, $emptyPasswordMessage = null, $exists = null, $confirm = null, $empty = null) { parent::__construct(array('confirm' => $passwordDontMatchMessage, 'empty' => $emptyPasswordMessage)); $this->exists = $exists; $this->confirm = $confirm; $this->empty = $empty; }
/** * Constructor * * @param callback $callback palid PHP callback * @param string $message validation fail message * @param array $extraParams extra parameters for callback * @param integer $valueParamPos the position the callback requires the value parameter to be at */ public function __construct($callback = null, $valueParamPos = 0) { parent::__construct(null); $this->callback = $callback; $this->valueParamPos = $valueParamPos; $extraParams = func_get_args(); unset($extraParams[0], $extraParams[1]); $this->extraParams = $extraParams; }
/** * Constructor * * @param string $message * @param boolean $required */ public function __construct($message, $required = true) { parent::__construct($message); $this->required = $required; }
/** * Constructor * * @param string $message validation fail message * @param mixed $value */ function __construct($message = '', $value = null) { parent::__construct($message); $this->value = $value; }
/** * Constructor. * * @param string|array $callback Valid PHP callback. * @param string $message Error message for failing validation. * @param array $extraParams Extra parameters for callback. * @param integer $valueParamPos In with position does the callback require the value parameter to be. * @return void */ public function __construct($message) { parent::__construct($message); }
/** * Constructor * * @param string $message * @param mixed[] $enum * @param boolean $negate */ public function __construct($message, array $enum = null, $negate = false) { parent::__construct($message); $this->enum = $enum; $this->negate = $negate; }
/** * Constructor * * @param string $message validation fail message */ function __construct($message = '', \Simplify\Form\Element $element = null, $id = null) { parent::__construct($message); $this->element = $element; $this->id = $id; }