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(); } }
public function __construct($value, array $opt = array()) { $this->constant = $value; $opt['required'] = true; $opt['allowEmpty'] = false; parent::__construct($opt); }
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; }
/** * Class constructor. * * @param array $props */ public function __construct($props = array()) { if (isset($props[0])) { $props['pattern'] = $props[0]; } unset($props[0]); parent::__construct($props); }
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; }
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); }
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); }
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; }
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); }
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; }
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; }
public function __construct(array $options = array()) { if (!isset($options['required'])) { $options['required'] = false; } if (!isset($options['allowEmpty'])) { $options['allowEmpty'] = true; } parent::__construct($options); }
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; }
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); } }
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); }
public function __construct(array $list, array $opt = array()) { $this->valuesList = $list; parent::__construct($opt); }
public function __construct(array $opt = array()) { $opt['required'] = false; $opt['allowEmpty'] = true; parent::__construct($opt); }
public function __construct(User $_user, $_title, $_body, $_append) { Validate::__construct($_user, false, 'community-letter'); $this->art = new ComLArticle($_title, $_body, $_append); }
public function __construct(User $_user) { parent::__construct($_user, true, 'gapps-unsuspend'); }
public function __construct() { return parent::__construct(); }
public function __construct(User $_user, $_title, $_body, $_append) { parent::__construct($_user, false, 'nl'); $this->art = new NLArticle($_title, $_body, $_append); }
/** Constructor * @param $_user: user object that required the validation. * @param $_profile: profile object that is to be modified, * its owner (if exists) can differ from $_user. * @param $_unique: set to false if a profile can have multiple requests of this type. * @param $_type: request's type. */ public function __construct(User $_user, Profile $_profile, $_unique, $_type) { parent::__construct($_user, $_unique, $_type); $this->profile =& $_profile; $this->profileOwner = $this->profile->owner(); $this->userIsProfileOwner = !is_null($this->profileOwner) && $this->profileOwner->id() == $this->user->id(); $this->ownerIsRegistered = $this->profile->isActive(); }
/** * Class constructor. * * @param array $props */ public function __construct($props = array()) { Validate::__construct($props); // Don't set pattern based on name }