本文整理汇总了PHP中Validation::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Validation::__construct方法的具体用法?PHP Validation::__construct怎么用?PHP Validation::__construct使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Validation
的用法示例。
在下文中一共展示了Validation::__construct方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct($id = false)
{
$this->id = $id ?: 'form' . self::$formcount;
if ($id) {
if (isset($_POST[$this->id])) {
parent::__construct($_POST);
} else {
if (isset($_GET[$this->id])) {
parent::__construct($_GET);
} else {
parent::__construct(array());
}
}
} else {
if (!empty($_POST)) {
parent::__construct($_POST);
} else {
if (!empty($_GET)) {
parent::__construct($_GET);
} else {
parent::__construct(array());
}
}
}
self::$formcount++;
}
示例2: __construct
public function __construct($limit, $message = "")
{
$this->limit = $limit;
if (empty($message)) {
$message = "%element% is limited to " . $limit . " characters.";
}
parent::__construct($message);
}
示例3: __construct
public function __construct($pattern, $message = "")
{
if (!empty($message)) {
$this->message = $message;
} else {
$this->message = RM_UI_Strings::get('FORM_ERR_INVALID_REGEX');
}
$this->pattern = $pattern;
parent::__construct($this->message);
}
示例4: __construct
public function __construct($name, $greaterThan, $equalTo = false)
{
parent::__construct($name);
$this->greaterThan = $greaterThan;
$this->equalTo = $equalTo;
}
示例5: __construct
public function __construct($name, $equalTo)
{
parent::__construct($name);
$this->equalTo = $equalTo;
}
示例6: __construct
public function __construct(array $array)
{
parent::__construct($array);
$this->setErrorsFile();
}
示例7:
function __construct()
{
parent::__construct();
}
示例8: __construct
public function __construct($name, $lessThan, $equalTo = false)
{
parent::__construct($name);
$this->lessThan = $lessThan;
$this->equalTo = $equalTo;
}
示例9: __construct
public function __construct($pattern, $message = "")
{
$this->pattern = $pattern;
parent::__construct($message);
}
示例10: __construct
public function __construct($app, $em)
{
parent::__construct($app, $em);
}