本文整理汇总了PHP中SpecialPage::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP SpecialPage::__construct方法的具体用法?PHP SpecialPage::__construct怎么用?PHP SpecialPage::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SpecialPage
的用法示例。
在下文中一共展示了SpecialPage::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* Class constructor.
*/
public function __construct()
{
parent::__construct('xml2wiki');
global $wgXML2WikiAllowedPaths;
global $wgXML2WikiEditablePaths;
global $wgXML2WikiConfig;
global $wgXML2WikiExtensionSysDir;
$this->_lastError = '';
$this->_debugEnabled = false;
$this->_allowedPaths = new X2WAllowedPaths($wgXML2WikiAllowedPaths, $wgXML2WikiConfig['allowedpathsrecursive']);
$this->_editablePaths = new X2WAllowedPaths($wgXML2WikiEditablePaths, $wgXML2WikiConfig['editablepathsrecursive']);
$this->_xmls = array();
/*
* Getting current directory.
*/
$this->_localDirectory = $wgXML2WikiExtensionSysDir;
/*
* Loading messages.
*/
wfLoadExtensionMessages('xml2wiki');
/*
* Setting tag-kooks.
*/
if (defined('MEDIAWIKI')) {
global $wgHooks;
global $wgParser;
$wgParser->setHook('xml2wiki', array(&$this, 'parseSimpleTag'));
if (defined(get_class($wgParser) . '::SFH_OBJECT_ARGS')) {
# Add a hook to initialise the magic word.
$wgHooks['LanguageGetMagic'][] = "wfXml2WikiLanguageGetMagic";
$wgParser->setFunctionHook('x2w', array(&$this, 'parseMasterTag'), SFH_OBJECT_ARGS);
}
}
}
示例2: array
function __construct()
{
global $wgRequest;
$this->request =& $wgRequest;
parent::__construct("stafflog", "stafflog");
$this->aTypes = array('' => '', 'block' => wfMsg('stafflog-filter-type-block'), 'piggyback' => wfMsg('stafflog-filter-type-piggyback'), 'renameuser' => wfMsg('stafflog-filter-type-renameuser'), 'wikifactor' => wfMsg('stafflog-filter-type-wikifactory'));
}
示例3: __construct
/**
* Constructor
*/
public function __construct()
{
global $wgUser;
parent::__construct('ChangeAuthor', 'changeauthor');
$this->selfTitle = SpecialPage::getTitleFor('ChangeAuthor');
$this->skin = $wgUser->getSkin();
}
示例4: __construct
public function __construct()
{
global $wgHooks;
# Add all our needed hooks
$wgHooks['SkinTemplateTabs'][] = $this;
parent::__construct('DSMWAdmin', 'delete');
}
示例5: wfLoadExtensionMessages
function __construct()
{
parent::__construct('Metasearch');
wfLoadExtensionMessages('Metasearch');
#$this->controller = MsController::get_instance();
// (important for global function setup)
}
示例6: __construct
public function __construct() {
global $wgOut, $wgUser;
$this->out = $wgOut;
$this->user = $wgUser;
$this->skin = $wgUser->getSkin();
parent::__construct( 'ManageMessageGroups', 'translate-manage' );
}
示例7: __construct
/**
* Initialize the special page.
*/
public function __construct()
{
// A special page should at least have a name.
// We do this by calling the parent class (the SpecialPage class)
// constructor method with the name as first and only parameter.
parent::__construct('SpellingDictionary');
}
示例8: __construct
/**
* contructor
*/
public function __construct()
{
#--- we use 'createwiki' restriction
parent::__construct("TaskManager", 'taskmanager');
$this->mTasks = array();
$this->mLoadPager = true;
}
示例9: __construct
public function __construct()
{
parent::__construct('Categories');
// Since we don't control the constructor parameters, we can't inject services that way.
// Instead, we initialize services in the execute() method, and allow them to be overridden
// using the initServices() method.
}
示例10: __construct
/**
* Constructor: initialise object
* Get data POSTed through the form and assign them to the object
*
* @param $request WebRequest: Data posted.
*/
public function __construct( $request = null ) {
global $wgRequest;
SpecialPage::__construct( 'PictureGameAjaxUpload', 'upload', false );
$this->loadRequest( is_null( $request ) ? $wgRequest : $request );
}
示例11: __construct
/**
* Set up and fill some dependencies.
*/
public function __construct() {
parent::__construct( 'ImportTranslations', 'translate-import' );
global $wgUser, $wgOut, $wgRequest;
$this->user = $wgUser;
$this->out = $wgOut;
$this->request = $wgRequest;
}
示例12: __construct
/**
* Constructor
*/
public function __construct()
{
global $wgMessageCache;
///TODO: should these be messages?
$wgMessageCache->addMessages(array('mvadmin' => 'Admin functions for MetavidWiki'));
parent::__construct('MVAdmin', 'delete');
}
示例13: __construct
public function __construct()
{
parent::__construct('CategoryIntersection');
global $wgContLang;
$this->CATEGORY_NS_PREFIX = $wgContLang->getNSText(NS_CATEGORY) . ":";
// the actual namespace prefix (includes the colon at the end).
}
示例14: __construct
public function __construct()
{
// Initialize special page
parent::__construct('Drafts');
// Internationalization
wfLoadExtensionMessages('Drafts');
}
示例15: __construct
public function __construct(){
parent::__construct('TwitterLogin');
global $wgConsumerKey, $wgConsumerSecret, $wgScriptPath;
$this->_consumerKey = $wgConsumerKey;
$this->_consumerSecret = $wgConsumerSecret;
}