public function __construct(array $params, array &$features) { parent::__construct($features); foreach (array('createdby' => 'createdby_', 'notcreatedby' => 'notCreatedby_', 'modifiedby' => 'modifiedby_', 'notmodifiedby' => 'notModifiedby_', 'lastmodifiedby' => 'lastmodifiedby_', 'notlastmodifiedby' => 'notLastmodifiedby_') as $key => $member) { if (isset($params[$key])) { $this->{$member} = array_map(array($this, 'parseUser'), (array) $params[$key]); } } }
public function __construct(array $params, array &$features) { parent::__construct($features); foreach (array('titleprefix' => 'titleprefixes_', 'nottitleprefix' => 'notTitleprefixes_', 'titlesuffix' => 'titlesuffixes_', 'nottitlesuffix' => 'notTitlesuffixes_', 'titlecontains' => 'titlecontains_', 'nottitlecontains' => 'notTitlecontains_') as $key => $member) { if (isset($params[$key])) { $this->{$member} = array_map(array($this, 'parseTitleSubstring'), (array) $params[$key]); } } }
public function __construct(array $params, array &$features) { parent::__construct($features); if (isset($params['extra'])) { $this->extras_ = array_map(array($this, 'parseText'), (array) $params['extra']); } if (isset($params['notextra'])) { $this->notExtras_ = array_map(array($this, 'parseText'), (array) $params['notextra']); } }
public function __construct(array $params, array &$features) { parent::__construct($features); if (isset($params['namespace'])) { $this->namespaces_ = array_map(array($this, 'parseNamespace'), (array) $params['namespace']); } if (isset($params['notnamespace'])) { $this->notNamespaces_ = array_map(array($this, 'parseNamespace'), (array) $params['notnamespace']); } }
public function __construct(array $params, array &$features) { parent::__construct($features); $this->order_ = $this->parseOrder(isset($params['order']) ? $params['order'] : null); /** The interpretation of the `ordermethod` parameter depends * on other features; therefore, this parameter is just stored * in @ref $ordermethod_, and invocation of parseOrdermethod() * is deferred to modifyQuery(), when all features have been * constructed. */ $this->ordermethod_ = isset($params['ordermethod']) ? $params['ordermethod'] : null; $this->sqlOrder_ = $this->order_ == 'descending' ? 'DESC' : 'ASC'; }
/** * @brief Constructor. Evaluate parameters. * * @param array $params Array of parameters. * * @param array $features Array of feature objects constructed so * far. * * @param string $paramName Name of the parameter to * recognize. The parameter "not$paramName" will be recognized as * well. * * @param int $ns Default namespace for linked pages. * * @param string $tableName Name of the table to join. * * @param string $tableAlias Table alias to use in the query. * * @param string $tableColumn Column to use for exclusion * condition in outer join. * * @param array $joinConds Join conditions. */ public function __construct(array $params, array &$features, $paramName, $ns, $tableName, $tableAlias, $tableColumn, $joinConds) { parent::__construct($features); $this->paramName_ = $paramName; $this->tableName_ = $tableName; $this->tableAlias_ = $tableAlias; $this->tableColumn_ = $tableColumn; $this->joinConds_ = $joinConds; if (isset($params[$this->paramName_])) { $this->linkedTitles_ = $this->arrayToTitles($params[$this->paramName_], $ns); $this->linkedCount_ = count($this->linkedTitles_); } if (isset($params["not{$this->paramName_}"])) { $this->notLinkedTitles_ = $this->arrayToTitles($params["not{$this->paramName_}"], $ns); $this->notLinkedCount_ = count($this->notLinkedTitles_); } }
public function __construct(array $params, array &$features) { parent::__construct($features); $this->subpages_ = $this->parseIncludeExclude(isset($params['subpages']) ? $params['subpages'] : null); }
public function __construct(array $params, array &$features) { self::initConf(); parent::__construct($features); $this->count_ = $this->parse(isset($params['count']) ? $params['count'] : null); }
public function __construct(array $params, array &$features) { /** Call initConf(). */ self::initConf(); parent::__construct($features); }
public function __construct(array $params, array &$features) { parent::__construct($features); }