当前位置: 首页>>代码示例>>PHP>>正文


PHP Check::__construct方法代码示例

本文整理汇总了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;
 }
开发者ID:saiber,项目名称:livecart,代码行数:7,代码来源:PasswordMatchCheck.php

示例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);
 }
开发者ID:saiber,项目名称:www,代码行数:7,代码来源:IsLengthBetweenCheck.php

示例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;
 }
开发者ID:saiber,项目名称:www,代码行数:21,代码来源:OrCheck.php

示例4: __construct

 public function __construct($violationMsg, User $user)
 {
     parent::__construct($violationMsg);
     $this->user = $user;
 }
开发者ID:saiber,项目名称:www,代码行数:5,代码来源:IsPasswordCorrectCheck.php

示例5: __construct

 public function __construct($value, Check $check)
 {
     parent::__construct($check->getViolationMsg());
     $this->check = $check;
     $this->value = $value;
 }
开发者ID:saiber,项目名称:www,代码行数:6,代码来源:VariableCheck.php

示例6: __construct

 public function __construct($violationMsg, $maxSize)
 {
     parent::__construct($violationMsg);
     $this->setParam('maxSize', $maxSize);
 }
开发者ID:saiber,项目名称:www,代码行数:5,代码来源:MaxFileSizeCheck.php

示例7: __construct

 public function __construct($violationMsg, $rangeStart, $rangeEnd)
 {
     parent::__construct($violationMsg);
     $this->setParam("rangeStart", $rangeStart);
     $this->setParam("rangeEnd", $rangeEnd);
 }
开发者ID:saiber,项目名称:www,代码行数:6,代码来源:IsValueBetweenCheck.php

示例8: __construct

 public function __construct($violationMsg, $maxValue)
 {
     parent::__construct($violationMsg);
     $this->setParam("maxValue", $maxValue);
 }
开发者ID:saiber,项目名称:www,代码行数:5,代码来源:MaxValueCheck.php

示例9: __construct

 public function __construct($errorMessage, EavFieldCommon $specField, Request $request)
 {
     parent::__construct($errorMessage);
     $this->specField = $specField;
     $this->request = $request;
 }
开发者ID:saiber,项目名称:livecart,代码行数:6,代码来源:SpecFieldIsValueSelectedCheck.php

示例10: __construct

 public function __construct($violationMsg, $maxLength)
 {
     parent::__construct($violationMsg);
     $this->setParam("maxLength", $maxLength);
 }
开发者ID:saiber,项目名称:www,代码行数:5,代码来源:MaxLengthCheck.php

示例11: __construct

 public function __construct($violationMsg, $expectedValue, $secondPasswordFieldname)
 {
     parent::__construct($violationMsg);
     $this->setParam("expectedValue", $expectedValue);
     $this->setParam("secondPasswordFieldname", $secondPasswordFieldname);
 }
开发者ID:saiber,项目名称:www,代码行数:6,代码来源:PasswordEqualityCheck.php

示例12: __construct

 public function __construct($minLength = null, $maxLength = null)
 {
     parent::__construct();
     $this->minLength = $minLength;
     $this->maxLength = $maxLength;
 }
开发者ID:cyantree,项目名称:grout-experimental,代码行数:6,代码来源:HasLength.php

示例13: __construct

 public function __construct($violationMsg, $pattern)
 {
     parent::__construct($violationMsg);
     $this->pattern = $pattern;
 }
开发者ID:saiber,项目名称:www,代码行数:5,代码来源:RegExpCheck.php

示例14: __construct

 public function __construct($violationMsg, $extensions)
 {
     parent::__construct($violationMsg);
     $this->setParam('extensions', $extensions);
 }
开发者ID:saiber,项目名称:www,代码行数:5,代码来源:IsFileTypeValidCheck.php

示例15: __construct

 public function __construct($min = null, $max = null)
 {
     parent::__construct();
     $this->min = $min;
     $this->max = $max;
 }
开发者ID:cyantree,项目名称:grout-experimental,代码行数:6,代码来源:InRange.php


注:本文中的Check::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。