当前位置: 首页>>代码示例>>PHP>>正文


PHP ApiQueryBase::__construct方法代码示例

本文整理汇总了PHP中ApiQueryBase::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP ApiQueryBase::__construct方法的具体用法?PHP ApiQueryBase::__construct怎么用?PHP ApiQueryBase::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ApiQueryBase的用法示例。


在下文中一共展示了ApiQueryBase::__construct方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 /**
  * 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");
 }
开发者ID:Tjorriemorrie,项目名称:app,代码行数:11,代码来源:WikiaApiQuery.php

示例2: __construct

	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 );
	}
开发者ID:nahoj,项目名称:mediawiki_ynh,代码行数:8,代码来源:ApiQueryImageInfo.php

示例3: __construct

 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();
     }
 }
开发者ID:puring0815,项目名称:OpenKore,代码行数:15,代码来源:ApiPageSet.php

示例4: __construct

 /**
  * 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;
 }
开发者ID:ui-libraries,项目名称:TIRWeb,代码行数:26,代码来源:ApiPageSet.php

示例5: __construct

 public function __construct($query, $moduleName)
 {
     parent::__construct($query, $moduleName, 'mt');
 }
开发者ID:schwarer2006,项目名称:wikia,代码行数:4,代码来源:ApiQueryMessageTranslations.php

示例6: __construct

 public function __construct($query, $moduleName, $paramPrefix = '')
 {
     parent::__construct($query, $moduleName, $paramPrefix);
     $this->mIsGenerator = false;
 }
开发者ID:eFFemeer,项目名称:seizamcore,代码行数:5,代码来源:ApiQueryBase.php

示例7: __construct

 public function __construct(ApiQuery $query, $moduleName)
 {
     parent::__construct($query, $moduleName, 'fri');
 }
开发者ID:claudinec,项目名称:galan-wiki,代码行数:4,代码来源:ApiQueryFileRepoInfo.php

示例8: __construct

 public function __construct($main, $action)
 {
     parent::__construct($main, $action, 'qs');
 }
开发者ID:yusufchang,项目名称:app,代码行数:4,代码来源:ApiQuerySurveySubmissions.php

示例9: __construct

 /**
  * constructor
  */
 public function __construct($query, $moduleName)
 {
     $this->defLimit = 1000;
     parent::__construct($query, $moduleName, "wk");
 }
开发者ID:schwarer2006,项目名称:wikia,代码行数:8,代码来源:WikiaApiQueryDomains.php

示例10:

 function __construct($query, $moduleName)
 {
     parent::__construct($query, $moduleName, 'arl');
 }
开发者ID:realsoc,项目名称:mediawiki-extensions,代码行数:4,代码来源:ApiQueryArchiveFeed.php

示例11: __construct

 public function __construct($query, $moduleName)
 {
     parent::__construct($query, $moduleName, 'coa');
     $this->unanswered_category = wfMsgForContent('unanswered_category');
     $this->answered_category = wfMsgForContent('answered_category');
 }
开发者ID:Tjorriemorrie,项目名称:app,代码行数:6,代码来源:ApiQueryCategoriesOnAnswers.php

示例12: __construct

 public function __construct($query, $moduleName)
 {
     parent::__construct($query, $moduleName, self::paramPrefix);
 }
开发者ID:schwarer2006,项目名称:wikia,代码行数:4,代码来源:ApiQueryParseTree.php

示例13: __construct

	public function __construct( $query, $moduleName ) {
		parent::__construct( $query, $moduleName, 'onlinestatus' );
	}
开发者ID:realsoc,项目名称:mediawiki-extensions,代码行数:3,代码来源:OnlineStatusBar.api.php


注:本文中的ApiQueryBase::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。