/** * constructor */ public function __construct($query, $moduleName) { $this->mAction = $query->getModuleName(); $this->mUser = User::newFromSession(); $this->mBrowser = $this->getUniqueBrowserId(); $this->mIndexTagName = 'item'; parent::__construct($query, $moduleName, "wk"); }
public function __construct( $query, $moduleName, $prefix = 'ii' ) { // We allow a subclass to override the prefix, to create a related API module. // Some other parts of MediaWiki construct this with a null $prefix, which used to be ignored when this only took two arguments if ( is_null( $prefix ) ) { $prefix = 'ii'; } parent::__construct( $query, $moduleName, $prefix ); }
public function __construct($query, $resolveRedirects = false) { parent::__construct($query, __CLASS__); $this->mAllPages = array(); $this->mGoodTitles = array(); $this->mMissingTitles = array(); $this->mMissingPageIDs = array(); $this->mRedirectTitles = array(); $this->mNormalizedTitles = array(); $this->mRequestedPageFields = array(); $this->mResolveRedirects = $resolveRedirects; if ($resolveRedirects) { $this->mPendingRedirectIDs = array(); } }
/** * Constructor * @param $query ApiQuery * @param $resolveRedirects bool Whether redirects should be resolved */ public function __construct($query, $resolveRedirects = false) { parent::__construct($query, 'query'); $this->mAllPages = array(); $this->mTitles = array(); $this->mGoodTitles = array(); $this->mMissingTitles = array(); $this->mInvalidTitles = array(); $this->mMissingPageIDs = array(); $this->mRedirectTitles = array(); $this->mNormalizedTitles = array(); $this->mInterwikiTitles = array(); $this->mGoodRevIDs = array(); $this->mMissingRevIDs = array(); $this->mRequestedPageFields = array(); $this->mResolveRedirects = $resolveRedirects; if ($resolveRedirects) { $this->mPendingRedirectIDs = array(); } $this->mFakePageId = -1; }
public function __construct($query, $moduleName) { parent::__construct($query, $moduleName, 'mt'); }
public function __construct($query, $moduleName, $paramPrefix = '') { parent::__construct($query, $moduleName, $paramPrefix); $this->mIsGenerator = false; }
public function __construct(ApiQuery $query, $moduleName) { parent::__construct($query, $moduleName, 'fri'); }
public function __construct($main, $action) { parent::__construct($main, $action, 'qs'); }
public function __construct(ApiQuery $query, $moduleName) { // "pc" is short for "page contributors", "co" was already taken by the // GeoData extension's prop=coordinates. parent::__construct($query, $moduleName, 'pc'); }
/** * constructor */ public function __construct($query, $moduleName) { $this->defLimit = 1000; parent::__construct($query, $moduleName, "wk"); }
function __construct($query, $moduleName) { parent::__construct($query, $moduleName, 'arl'); }
public function __construct($query, $moduleName) { parent::__construct($query, $moduleName, 'coa'); $this->unanswered_category = wfMsgForContent('unanswered_category'); $this->answered_category = wfMsgForContent('answered_category'); }
public function __construct($query, $moduleName) { parent::__construct($query, $moduleName, self::paramPrefix); }
public function __construct( $query, $moduleName ) { parent::__construct( $query, $moduleName, 'onlinestatus' ); }