本文整理匯總了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);
}