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


PHP SpecialPage::__construct方法代码示例

本文整理汇总了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);
         }
     }
 }
开发者ID:mediawiki-extensions,项目名称:xml2wiki-dr,代码行数:37,代码来源:xml2wiki-dr.body.php

示例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'));
 }
开发者ID:schwarer2006,项目名称:wikia,代码行数:7,代码来源:StaffLog_body.php

示例3: __construct

 /**
  * Constructor
  */
 public function __construct()
 {
     global $wgUser;
     parent::__construct('ChangeAuthor', 'changeauthor');
     $this->selfTitle = SpecialPage::getTitleFor('ChangeAuthor');
     $this->skin = $wgUser->getSkin();
 }
开发者ID:realsoc,项目名称:mediawiki-extensions,代码行数:10,代码来源:ChangeAuthor.body.php

示例4: __construct

 public function __construct()
 {
     global $wgHooks;
     # Add all our needed hooks
     $wgHooks['SkinTemplateTabs'][] = $this;
     parent::__construct('DSMWAdmin', 'delete');
 }
开发者ID:realsoc,项目名称:mediawiki-extensions,代码行数:7,代码来源:DSMWAdmin.php

示例5: wfLoadExtensionMessages

 function __construct()
 {
     parent::__construct('Metasearch');
     wfLoadExtensionMessages('Metasearch');
     #$this->controller = MsController::get_instance();
     // (important for global function setup)
 }
开发者ID:BackupTheBerlios,项目名称:biokemika-svn,代码行数:7,代码来源:MetaSearch_body.php

示例6: __construct

	public function __construct() {
		global $wgOut, $wgUser;
		$this->out = $wgOut;
		$this->user = $wgUser;
		$this->skin = $wgUser->getSkin();
		parent::__construct( 'ManageMessageGroups', 'translate-manage' );
	}
开发者ID:realsoc,项目名称:mediawiki-extensions,代码行数:7,代码来源:SpecialManageGroups.php

示例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');
 }
开发者ID:barbu110,项目名称:mediawiki-spelling-dictionary,代码行数:10,代码来源:SpecialSpellingDictionary.php

示例8: __construct

 /**
  * contructor
  */
 public function __construct()
 {
     #--- we use 'createwiki' restriction
     parent::__construct("TaskManager", 'taskmanager');
     $this->mTasks = array();
     $this->mLoadPager = true;
 }
开发者ID:schwarer2006,项目名称:wikia,代码行数:10,代码来源:SpecialTaskManager_body.php

示例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.
 }
开发者ID:claudinec,项目名称:galan-wiki,代码行数:7,代码来源:SpecialCategories.php

示例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 );
	}
开发者ID:realsoc,项目名称:mediawiki-extensions,代码行数:13,代码来源:AjaxUploadForm.php

示例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;
	}
开发者ID:realsoc,项目名称:mediawiki-extensions,代码行数:10,代码来源:SpecialImportTranslations.php

示例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');
 }
开发者ID:BenoitTalbot,项目名称:bungeni-portal,代码行数:10,代码来源:MV_SpecialMVAdmin.php

示例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).
 }
开发者ID:schwarer2006,项目名称:wikia,代码行数:7,代码来源:SpecialCategoryIntersection.php

示例14: __construct

 public function __construct()
 {
     // Initialize special page
     parent::__construct('Drafts');
     // Internationalization
     wfLoadExtensionMessages('Drafts');
 }
开发者ID:biribogos,项目名称:wikihow-src,代码行数:7,代码来源:Drafts.pages.php

示例15: __construct

	public function __construct(){
		parent::__construct('TwitterLogin');
		global $wgConsumerKey, $wgConsumerSecret, $wgScriptPath;

		$this->_consumerKey = $wgConsumerKey;
		$this->_consumerSecret = $wgConsumerSecret;
	}
开发者ID:realsoc,项目名称:mediawiki-extensions,代码行数:7,代码来源:SpecialTwitterLogin.php


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