本文整理汇总了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");
}
示例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 );
}
示例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();
}
}
示例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;
}
示例5: __construct
public function __construct($query, $moduleName)
{
parent::__construct($query, $moduleName, 'mt');
}
示例6: __construct
public function __construct($query, $moduleName, $paramPrefix = '')
{
parent::__construct($query, $moduleName, $paramPrefix);
$this->mIsGenerator = false;
}
示例7: __construct
public function __construct(ApiQuery $query, $moduleName)
{
parent::__construct($query, $moduleName, 'fri');
}
示例8: __construct
public function __construct($main, $action)
{
parent::__construct($main, $action, 'qs');
}
示例9: __construct
/**
* constructor
*/
public function __construct($query, $moduleName)
{
$this->defLimit = 1000;
parent::__construct($query, $moduleName, "wk");
}
示例10:
function __construct($query, $moduleName)
{
parent::__construct($query, $moduleName, 'arl');
}
示例11: __construct
public function __construct($query, $moduleName)
{
parent::__construct($query, $moduleName, 'coa');
$this->unanswered_category = wfMsgForContent('unanswered_category');
$this->answered_category = wfMsgForContent('answered_category');
}
示例12: __construct
public function __construct($query, $moduleName)
{
parent::__construct($query, $moduleName, self::paramPrefix);
}
示例13: __construct
public function __construct( $query, $moduleName ) {
parent::__construct( $query, $moduleName, 'onlinestatus' );
}