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


PHP Validate::__construct方法代码示例

本文整理汇总了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();
     }
 }
开发者ID:Ekleog,项目名称:platal,代码行数:26,代码来源:paiements.inc.php

示例2: __construct

 public function __construct($value, array $opt = array())
 {
     $this->constant = $value;
     $opt['required'] = true;
     $opt['allowEmpty'] = false;
     parent::__construct($opt);
 }
开发者ID:Nivl,项目名称:Ninaca_1,代码行数:7,代码来源:ValidateConst.class.php

示例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;
 }
开发者ID:Ekleog,项目名称:platal,代码行数:7,代码来源:broken.inc.php

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

示例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;
 }
开发者ID:Ekleog,项目名称:platal,代码行数:8,代码来源:homonymes.inc.php

示例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);
 }
开发者ID:Nivl,项目名称:Ninaca_1,代码行数:9,代码来源:ValidateReCaptcha.class.php

示例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);
 }
开发者ID:Nivl,项目名称:Ninaca_1,代码行数:9,代码来源:ValidateFile.class.php

示例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;
 }
开发者ID:Ekleog,项目名称:platal,代码行数:9,代码来源:aliases.inc.php

示例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);
 }
开发者ID:Ekleog,项目名称:platal,代码行数:9,代码来源:bulkaccounts.inc.php

示例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;
 }
开发者ID:Ekleog,项目名称:platal,代码行数:10,代码来源:surveys.inc.php

示例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;
 }
开发者ID:Ekleog,项目名称:platal,代码行数:10,代码来源:marketing.inc.php

示例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);
 }
开发者ID:Nivl,项目名称:Ninaca_1,代码行数:10,代码来源:ValidateBool.class.php

示例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;
 }
开发者ID:Ekleog,项目名称:platal,代码行数:13,代码来源:listes.inc.php

示例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);
     }
 }
开发者ID:Ekleog,项目名称:platal,代码行数:13,代码来源:evts.inc.php

示例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);
 }
开发者ID:Ekleog,项目名称:platal,代码行数:16,代码来源:account.inc.php


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