本文整理汇总了PHP中Check::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Check::__construct方法的具体用法?PHP Check::__construct怎么用?PHP Check::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Check
的用法示例。
在下文中一共展示了Check::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct($violationMsg, Request $request, $fieldName, $confFieldName)
{
parent::__construct($violationMsg);
$this->setParam("fieldName", $fieldName);
$this->setParam("confFieldName", $confFieldName);
$this->request = $request;
}
示例2: __construct
public function __construct($violationMsg, $minLength, $maxLength, $allowEmpty = false)
{
parent::__construct($violationMsg);
$this->setParam('minLength', $minLength);
$this->setParam('maxLength', $maxLength);
$this->setParam('allowEmpty', $allowEmpty);
}
示例3: __construct
/**
* @param array $fieldNames Array of field names used
* @param array $checks Array of respective checks (fieldname and check array indexes must match)
*/
public function __construct($fieldNames, $checks, Request $request)
{
// get error message from first check
foreach ($checks as $check) {
if ($violationMsg = $check->getViolationMsg()) {
break;
}
}
// check if fieldname and check array indexes match
if (array_diff(array_keys($fieldNames), array_keys($checks))) {
throw new ApplicationException('Field name and check array keys do not match');
}
parent::__construct($violationMsg);
$this->fieldNames = $fieldNames;
$this->checks = $checks;
$this->request = $request;
}
示例4: __construct
public function __construct($violationMsg, User $user)
{
parent::__construct($violationMsg);
$this->user = $user;
}
示例5: __construct
public function __construct($value, Check $check)
{
parent::__construct($check->getViolationMsg());
$this->check = $check;
$this->value = $value;
}
示例6: __construct
public function __construct($violationMsg, $maxSize)
{
parent::__construct($violationMsg);
$this->setParam('maxSize', $maxSize);
}
示例7: __construct
public function __construct($violationMsg, $rangeStart, $rangeEnd)
{
parent::__construct($violationMsg);
$this->setParam("rangeStart", $rangeStart);
$this->setParam("rangeEnd", $rangeEnd);
}
示例8: __construct
public function __construct($violationMsg, $maxValue)
{
parent::__construct($violationMsg);
$this->setParam("maxValue", $maxValue);
}
示例9: __construct
public function __construct($errorMessage, EavFieldCommon $specField, Request $request)
{
parent::__construct($errorMessage);
$this->specField = $specField;
$this->request = $request;
}
示例10: __construct
public function __construct($violationMsg, $maxLength)
{
parent::__construct($violationMsg);
$this->setParam("maxLength", $maxLength);
}
示例11: __construct
public function __construct($violationMsg, $expectedValue, $secondPasswordFieldname)
{
parent::__construct($violationMsg);
$this->setParam("expectedValue", $expectedValue);
$this->setParam("secondPasswordFieldname", $secondPasswordFieldname);
}
示例12: __construct
public function __construct($minLength = null, $maxLength = null)
{
parent::__construct();
$this->minLength = $minLength;
$this->maxLength = $maxLength;
}
示例13: __construct
public function __construct($violationMsg, $pattern)
{
parent::__construct($violationMsg);
$this->pattern = $pattern;
}
示例14: __construct
public function __construct($violationMsg, $extensions)
{
parent::__construct($violationMsg);
$this->setParam('extensions', $extensions);
}
示例15: __construct
public function __construct($min = null, $max = null)
{
parent::__construct();
$this->min = $min;
$this->max = $max;
}