/** * Constructor. * * @param string $leagueId */ public function __construct($leagueId = null) { parent::__construct(); if ($leagueId !== null) { $this->setLeagueId($leagueId); } }
/** * @param Grido\Grid $grid * @param string $name * @param string $label * @param array $items for select */ public function __construct($grid, $name, $label, array $items = NULL) { parent::__construct($grid, $name, $label); if ($items !== NULL) { $this->getControl()->setItems($items); } }
public function __construct() { $allOperators = implode(",", array(self::OPERATORS, self::SPATIAL_OPERATORS)); if (func_num_args() >= 3) { $this->operator = func_get_arg(0); $this->key = func_get_arg(1); $this->value = func_get_arg(2); if (func_num_args() >= 4) { $this->wfsConf = func_get_arg(3); if (!is_a($this->wfsConf, "WfsConfiguration")) { throw new Exception("OgcFilter: wfsConf is not a WFS Configuration."); } } if (!in_array($this->operator, explode(",", $allOperators))) { throw new Exception("OgcFilter: Invalid operator " . $this->operator); } } else { if (func_num_args() === 2) { $logicalOp = func_get_arg(0); $filterArray = func_get_arg(1); return parent::__construct($logicalOp, $filterArray); } else { throw new Exception("OgcFilter: Insufficient arguments."); } } }
function __construct() { // HHVM (PHP 5 mode, PHP 7 mode), PHP 5, 7: Filter::filter is called; // no error // PHP 8: "Fatal error: Cannot call constructor" parent::__construct(); }
public function __construct($primaryTable, $primaryTableAlias, $primaryJoinField) { parent::__construct(); $this->primaryTable = $primaryTable; $this->primaryTableAlias = $primaryTableAlias; $this->primaryJoinField = new Field($primaryJoinField, $primaryTableAlias); }
/** * Constructor * * @param callable $callback * @return void */ public function __construct($callback) { parent::__construct($callback); // Set the default signature $this->resetParameters(); $this->addParameterByName('attrValue'); }
/** * Build a new instance of the validator * * @param string $message Message returned on validation error * @return void */ public function __construct($options = null, $message = "The field must be a valid URL.") { parent::__construct($message); $this->filterFlag = FILTER_VALIDATE_URL; if ($options) { $this->filterOptions = $options; } }
public function __construct($only_enabled_users = true) { parent::__construct(); $this->qb->select(new Field("id", "users"))->from(Tbl::get('TBL_USERS', 'UserManagement'), "users"); if ($only_enabled_users) { $this->qb->andWhere($this->qb->expr()->equal(new Field('enable', "users"), UserManagement::STATE_ENABLE_ENABLED)); } }
/** * Constructor * * @param int $broadcasterSteamId * @param int $leagueId */ public function __construct($broadcasterSteamId, $leagueId = null) { parent::__construct(); $this->setBroadcasterSteamId($broadcasterSteamId); if ($leagueId !== null) { $this->setLeagueId($leagueId); } }
public function __construct($params = array()) { parent::__construct($params); $this->valueName = isset($params['valueName']) ? $params['valueName'] : ''; if ($this->valueName == '') { throw new Exception('Missing or empty valueName parameter'); } $this->convertZeroToNULL = isset($params['convertZeroToNULL']) ? (bool) $params['convertZeroToNULL'] : false; }
/** * @param string $baseUrl The URL for this item, WITHOUT the actual filter * parameter. This will be appended programmatically. * @param string $fieldName * @param float $absoluteMinimum * @param float $absoluteMaximum * @param float $selectedMinimum * @param float $selectedMaximum */ public function __construct($baseUrl, $fieldName, $absoluteMinimum = 0, $absoluteMaximum = 0, $selectedMinimum = 0, $selectedMaximum = 0) { $selected = $selectedMinimum != $absoluteMinimum || $selectedMaximum != $absoluteMaximum; parent::__construct('', $baseUrl, $selected, $fieldName); $this->absoluteMinimum = $absoluteMinimum; $this->absoluteMaximum = $absoluteMaximum; $this->selectedMinimum = $selectedMinimum; $this->selectedMaximum = $selectedMaximum; }
public function __construct($headersOnly = true) { parent::__construct(); if ($headersOnly) { $this->qb->select(new Field("*")); } else { $this->qb->select(array(new Field('id', 'main'), new Field('subject', 'main'), new Field('date', 'main'), new Field('sender', 'extra'), new Field('read', 'extra'), new Field('trashed', 'extra'), new Field('deleted', 'extra'))); } $this->qb->from(Tbl::get('TBL_MESSAGES', 'MessageManagement'), "main")->leftJoin(Tbl::get('TBL_EXTRA', 'MessageManagement'), "extra", $this->qb->expr()->equal(new Field('id', 'main'), new Field('message_id', 'extra'))); }
/** * Constructor. * * @param string|int|null $start * @param int|null $limit */ public function __construct($start = null, $limit = null) { parent::__construct(); if ($start !== null) { $this->setStartSequenceNumber($start); } if ($limit !== null) { $this->setLimit($limit); } }
/** * Constructor * * NB: Sub-classes of this class must not add additional * mandatory constructor arguments. Sub-classes that implement * additional optional constructor arguments must make these * also accessible via setters if they are required to fully * parameterize the transformation. Filter parameters must be * stored as data in the underlying DataObject. * * This is necessary as the FilterDAO does not support * constructor configuration. Filter parameters will be * configured via DataObject::setData(). Only parameters * that are available in the DataObject will be persisted. * * @param $filterGroup FilterGroup */ function __construct($filterGroup) { // Check and set the filter group. assert(is_a($filterGroup, 'FilterGroup')); $this->_filterGroup = $filterGroup; // Initialize the filter. $this->setParentFilterId(0); $this->setIsTemplate(false); parent::__construct($filterGroup->getInputType(), $filterGroup->getOutputType()); }
/** * Build a new instance of the validator * * @param bool $IPv4 Filter only IPv4 addresses * @param bool $IPv6 Filter only IPv6 addresses * @param bool $no_priv_range Address not in private range * @param string $message Message returned on validation error * @return void */ public function __construct($IPv4 = true, $IPv6 = false, $no_priv_range = false, $message = "The field must be a valid IP Address.") { parent::__construct($message); $this->filterFlag = FILTER_VALIDATE_IP; if ($IPv4) { $this->filterOptions = FILTER_FLAG_IPV4; } elseif ($IPv6) { $this->filterOptions = FILTER_FLAG_IPV6; } elseif ($no_priv_range) { $this->filterOptions = FILTER_FLAG_NO_PRIV_RANGE; } }
public function __construct($_opts) { parent::__construct($_opts); $this->special_chars = '!%#.'; $this->template_dir = 'views'; $this->template_extension = '.haml'; $this->encoding = 'utf-8'; $this->xml = new XMLWriter(); $this->xml->openMemory(); $this->xml->setIndent(true); $this->doctypes = array('XML' => '<?xml version="1.0" encoding="%s"?' . '>', 'Strict' => array('html', '-//W3C//DTD XHTML 1.0 Strict//EN', 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'), 'Transitional' => array('html', '-//W3C//DTD XHTML 1.0 Transitional//EN', 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'), 'Frameset' => array('html', '-//W3C//DTD XHTML 1.0 Frameset//EN', 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd'), '1.1' => array('html', '-//W3C//DTD XHTML 1.1//EN', 'http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd'), 'HTML Strict' => array('HTML', '-//W3C//DTD HTML 4.01//EN', 'http://www.w3.org/TR/TR/html4/strict.dtd'), 'HTML Transitional' => array('HTML', '-//W3C//DTD HTML 4.01 Transitional//EN', 'http://www.w3.org/TR/TR/html4/loose.dtd'), 'HTML Frameset' => array('HTML', '-//W3C//DTD HTML 4.01 Frameset//EN', 'http://www.w3.org/TR/TR/html4/frameset.dtd')); $regex['argument'] = '(\\{[^\\}]+\\})?'; $regex['tag'] = '[a-z0-9\\-_!]+'; $regex['haml'] = "/(([!%#\\.]{$regex['tag']})+){$regex['argument']}( .*)?/i"; $regex['head'] = "/([%#\\.]{$regex['tag']}|!!!)([#\\.]{$regex['tag']})*/i"; $regex['attr'] = '/(:([a-z]+)|[\'"](([a-z]+:?)+)[\'"])+ +?=> +?[\'"]([^\'"]+)[\'"]/'; $this->regex = $regex; }
public function __construct() { parent::__construct(); $this->qb->select(new Field("*", "up"))->from(Tbl::get('TBL_USERS_PHOTOS', 'UserPhotoManager'), "up"); }
/** * Constructor. * * @param int $serverSteamId */ public function __construct($serverSteamId) { parent::__construct(); $this->setServerSteamId($serverSteamId); }
public function __construct() { $classes = new CharClassList(); foreach ($classes->iterate() as $cId => $_tpl) { // preselect misc subclasses $this->ubFilter[$cId] = [ITEM_CLASS_WEAPON => [14], ITEM_CLASS_ARMOR => [0]]; for ($i = 0; $i < 21; $i++) { if ($_tpl['weaponTypeMask'] & 1 << $i) { $this->ubFilter[$cId][ITEM_CLASS_WEAPON][] = $i; } } for ($i = 0; $i < 11; $i++) { if ($_tpl['armorTypeMask'] & 1 << $i) { $this->ubFilter[$cId][ITEM_CLASS_ARMOR][] = $i; } } } parent::__construct(); }
/** * constructor. * * @param string $name * @param string $groupbystmt * @param int $flags */ public function __construct($name, $groupbystmt, $flags = 0) { $this->m_groupbystmt = $groupbystmt; parent::__construct($name, $flags); }
/** * constructor. */ public function __construct() { parent::__construct('distinctfilter'); }
public function __construct($query, $type, $params, $connexion) { parent::__construct($query, $type, $params, $connexion); }
/** * Constructor * @param $inputType string * @param $outputType string * @param $filterMode integer one of the PERSON_STRING_FILTER_* constants */ function __construct($inputType, $outputType, $filterMode = PERSON_STRING_FILTER_SINGLE) { $this->_filterMode = $filterMode; parent::__construct($inputType, $outputType); }
/** * Build a new instance of the validator * * @param string $regexp Regexp that have to match the from value * @param string $message Message returned on validation error * @return void */ public function __construct($regexp, $message = "Pattern not supported.") { parent::__construct($message); $this->filterFlag = FILTER_VALIDATE_REGEXP; $this->filterOptions = ['options' => ['regexp' => $regexp]]; }
/** * Constructor */ function __construct() { $this->setDisplayName('Join several NLM Citation descriptions into a single citation'); // Only for internal debugging. parent::__construct('metadata::lib.pkp.plugins.metadata.nlm30.schema.Nlm30CitationSchema(CITATION)[]', 'class::lib.pkp.classes.citation.Citation'); }
function __construct($core, $checker_params) { parent::__construct($core); $this->checker = $this->checker($checker_params); }
/** * Build a new instance of the validator * * @param string $message Message returned on validation error * @return void */ public function __construct($message = "The field must be a valid Mac Address.") { parent::__construct($message); $this->filterFlag = FILTER_VALIDATE_MAC; }
public function __construct(\RecursiveIterator $iterator, $callback) { parent::__construct($iterator, $callback); }
public function __construct() { parent::__construct(); $this->qb->select(new Field("*", "texts_vals"))->from(Tbl::get('TBL_TEXTS_VALUES', 'TextsValuesManager'), "texts_vals"); }
public function WidgetFilter() { parent::__construct(); }