本文整理汇总了PHP中Validate::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Validate::__construct方法的具体用法?PHP Validate::__construct怎么用?PHP Validate::__construct使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Validate
的用法示例。
在下文中一共展示了Validate::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct(User $_user, $_intitule, $_site, $_montant, $_msg, $_montantmin = 0, $_montantmax = 999, $_asso_id = 0, $_evt = 0, $_public = false, $_stamp = 0)
{
parent::__construct($_user, false, 'paiements', $_stamp);
$this->titre = $_intitule;
$this->site = $_site;
$this->msg_reponse = $_msg;
$this->asso_id = (string) $_asso_id;
$this->evt = (string) $_evt;
$this->montant = $_montant;
$this->montant_min = $_montantmin;
$this->montant_max = $_montantmax;
$this->public = $_public;
if ($_asso_id) {
$res = XDB::query("SELECT nom FROM groups WHERE id = {?}", $_asso_id);
$this->asso = $res->fetchOneCell();
}
if ($_asso_id && $_evt) {
$res = XDB::query("SELECT intitule FROM group_events WHERE asso_id = {?} AND eid = {?}", $_asso_id, $_evt);
$this->evt_intitule = $res->fetchOneCell();
}
// for future use, when anims can choose there bankaccounts
if ($this->rib_id) {
$res = XDB::query("SELECT owner FROM payment_bankaccounts WHERE id = {?}", $this->rib_id);
$this->rib_nom = $res->fetchOneCell();
}
}
示例2: __construct
public function __construct($value, array $opt = array())
{
$this->constant = $value;
$opt['required'] = true;
$opt['allowEmpty'] = false;
parent::__construct($opt);
}
示例3: __construct
public function __construct(User $sender, User $user, $email, $comment = null)
{
parent::__construct($sender, false, 'broken');
$this->m_user =& $user;
$this->m_comment = trim($comment);
$this->m_email = $email;
}
示例4: __construct
/**
* Class constructor.
*
* @param array $props
*/
public function __construct($props = array())
{
if (isset($props[0])) {
$props['pattern'] = $props[0];
}
unset($props[0]);
parent::__construct($props);
}
示例5: __construct
public function __construct(User $_user, $_email, $_homonymes_hruid, $warning = true)
{
$this->warning = $warning;
parent::__construct($_user, true, $this->title());
$this->refuse = false;
$this->email = $_email;
$this->homonymes_hruid = $_homonymes_hruid;
}
示例6: __construct
public function __construct(array $options = array())
{
if (!function_exists('recaptcha_get_html')) {
require Misc::getLibPath() . '/vendors/recaptcha/recaptchalib.php';
}
$options['allowEmpty'] = true;
$options['require'] = false;
parent::__construct($options);
}
示例7: __construct
public function __construct(array $mimeType, array $options = array())
{
$this->mimeTypes = $mimeType;
if (!isset($options['maxSize'])) {
$options['maxSize'] = ini_get('upload_max_filesize');
}
$options['maxSize'] = Ftp::octetConverter($options['maxSize']);
parent::__construct($options);
}
示例8: __construct
public function __construct(User $_user, $_alias, $_reason, $_public, $_old, $_stamp = 0)
{
global $globals;
parent::__construct($_user, true, 'alias', $_stamp);
$this->alias = $_alias;
$this->reason = $_reason;
$this->public = $_public;
$this->old = $_old;
}
示例9: __construct
public function __construct(User $user, array $uids, $group, $dim)
{
parent::__construct($user, false, 'bulkaccounts');
$this->group = $group;
$this->dim = $dim;
$this->users = XDB::fetchAllAssoc('SELECT uid, hruid, email
FROM accounts
WHERE uid IN {?}', $uids);
}
示例10: __construct
public function __construct($_title, $_description, $_end, $_mode, $_promos, $_questions, User $_user)
{
parent::__construct($_user, false, 'surveys');
$this->title = $_title;
$this->description = $_description;
$this->end = $_end;
$this->mode = $_mode;
$this->promos = $_promos;
$this->questions = $_questions;
}
示例11: __construct
public function __construct(User $sender, User $mark, $email, $perso, $type, $data, $personal_notes)
{
parent::__construct($sender, false, 'marketing');
$this->m_user =& $mark;
$this->m_email = $email;
$this->perso = $perso;
$this->m_type = $type;
$this->m_data = $data;
$this->m_personal_notes = $personal_notes;
}
示例12: __construct
public function __construct(array $options = array())
{
if (!isset($options['required'])) {
$options['required'] = false;
}
if (!isset($options['allowEmpty'])) {
$options['allowEmpty'] = true;
}
parent::__construct($options);
}
示例13: __construct
public function __construct(User $_user, $_asso, $_liste, $_domain, $_desc, $_advertise, $_modlevel, $_inslevel, $_owners, $_members, $_stamp = 0)
{
parent::__construct($_user, false, 'liste', $_stamp);
$this->asso = $_asso;
$this->liste = $_liste;
$this->domain = $_domain;
$this->desc = $_desc;
$this->advertise = $_advertise;
$this->modlevel = $_modlevel;
$this->inslevel = $_inslevel;
$this->owners = $_owners;
$this->members = $_members;
}
示例14: __construct
public function __construct($_titre, $_texte, $_pmin, $_pmax, $_expiration, $_comment, User $_user, PlUpload $upload = null)
{
parent::__construct($_user, false, 'evts');
$this->titre = $_titre;
$this->texte = $_texte;
$this->pmin = $_pmin;
$this->pmax = $_pmax;
$this->expiration = $_expiration;
$this->comment = $_comment;
if ($upload) {
$this->readImage($upload);
}
}
示例15: __construct
public function __construct(User $user, $hruid, $email, $group, $dim)
{
parent::__construct($user, false, 'account');
$this->hruid = $hruid;
$this->email = $email;
$this->group = $group;
$this->dim = $dim;
$this->uid = XDB::fetchOneCell('SELECT uid
FROM accounts
WHERE hruid = {?}', $hruid);
$this->groups = XDB::fetchAllAssoc('SELECT g.nom, g.diminutif
FROM groups AS g
INNER JOIN group_members AS m ON (g.id = m.asso_id)
WHERE m.uid = {?}
ORDER BY g.nom', $this->uid);
}