예제 #1
0
 /**
  * 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");
 }
예제 #2
0
	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 );
	}
예제 #3
0
 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();
     }
 }
예제 #4
0
 /**
  * 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');
 }
예제 #6
0
 public function __construct($query, $moduleName, $paramPrefix = '')
 {
     parent::__construct($query, $moduleName, $paramPrefix);
     $this->mIsGenerator = false;
 }
예제 #7
0
 public function __construct(ApiQuery $query, $moduleName)
 {
     parent::__construct($query, $moduleName, 'fri');
 }
예제 #8
0
 public function __construct($main, $action)
 {
     parent::__construct($main, $action, 'qs');
 }
예제 #9
0
 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');
 }
예제 #10
0
 /**
  * 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');
 }
예제 #13
0
 public function __construct($query, $moduleName)
 {
     parent::__construct($query, $moduleName, self::paramPrefix);
 }
	public function __construct( $query, $moduleName ) {
		parent::__construct( $query, $moduleName, 'onlinestatus' );
	}