/**
  * 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);
         }
     }
 }
Example #2
0
 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'));
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     global $wgUser;
     parent::__construct('ChangeAuthor', 'changeauthor');
     $this->selfTitle = SpecialPage::getTitleFor('ChangeAuthor');
     $this->skin = $wgUser->getSkin();
 }
 public function __construct()
 {
     global $wgHooks;
     # Add all our needed hooks
     $wgHooks['SkinTemplateTabs'][] = $this;
     parent::__construct('DSMWAdmin', 'delete');
 }
 function __construct()
 {
     parent::__construct('Metasearch');
     wfLoadExtensionMessages('Metasearch');
     #$this->controller = MsController::get_instance();
     // (important for global function setup)
 }
	public function __construct() {
		global $wgOut, $wgUser;
		$this->out = $wgOut;
		$this->user = $wgUser;
		$this->skin = $wgUser->getSkin();
		parent::__construct( 'ManageMessageGroups', 'translate-manage' );
	}
 /**
  * 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');
 }
 /**
  * contructor
  */
 public function __construct()
 {
     #--- we use 'createwiki' restriction
     parent::__construct("TaskManager", 'taskmanager');
     $this->mTasks = array();
     $this->mLoadPager = true;
 }
 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.
 }
	/**
	 * 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 );
	}
	/**
	 * 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;
	}
 /**
  * Constructor
  */
 public function __construct()
 {
     global $wgMessageCache;
     ///TODO: should these be messages?
     $wgMessageCache->addMessages(array('mvadmin' => 'Admin functions for MetavidWiki'));
     parent::__construct('MVAdmin', 'delete');
 }
 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).
 }
Example #14
0
 public function __construct()
 {
     // Initialize special page
     parent::__construct('Drafts');
     // Internationalization
     wfLoadExtensionMessages('Drafts');
 }
	public function __construct(){
		parent::__construct('TwitterLogin');
		global $wgConsumerKey, $wgConsumerSecret, $wgScriptPath;

		$this->_consumerKey = $wgConsumerKey;
		$this->_consumerSecret = $wgConsumerSecret;
	}
 public function __construct()
 {
     parent::__construct('ApiGate');
     //set apigate link path
     global $APIGATE_LINK_ROOT;
     $APIGATE_LINK_ROOT = Title::newFromText('ApiGate', NS_SPECIAL)->fixSpecialName()->getFullUrl();
 }
 function __construct()
 {
     // the second parameter in the following function call ensures that only
     // users who have the 'linktitles-batch' right get to see this page (by
     // default, this are all sysop users).
     parent::__construct('LinkTitles', 'linktitles-batch');
 }
Example #18
0
 function __construct()
 {
     global $wgHooks;
     parent::__construct('RCPatrol');
     $wgHooks['OutputPageBeforeHTML'][] = array('RCPatrol::postParserCallback');
     $wgHooks['getToolStatus'][] = array('Misc::defineAsTool');
 }
 /**
  * Default constructor
  * @see includes/SpecialPage.php
  */
 function __construct()
 {
     // The name should be the same as the id of the special page
     parent::__construct('MultiAuthSpecialLogout', '', true, false, 'default', false);
     // get a reference to an instance of the multi auth plugin
     global $wgMultiAuthPlugin;
     $this->multiAuthPlugin =& $wgMultiAuthPlugin;
 }
Example #20
0
 public function __construct()
 {
     // macbre: don't run code below when running in command line mode (memcache starts to act strange) - NOTE: This macbre code was in a different spot... this may be fixed implicitly now.
     if (!empty($wgCommandLineMode)) {
         return;
     }
     parent::__construct('DevBoxPanel');
 }
 function __construct()
 {
     parent::__construct('SpellCheckerInfo');
     $this->app = WF::build('App');
     $this->out = $this->app->getGlobal('wgOut');
     $this->request = $this->app->getGlobal('wgRequest');
     $this->title = $this->app->getGlobal('wgTitle');
 }
 function __construct()
 {
     parent::__construct('ClickTracking', 'clicktrack');
     wfLoadExtensionMessages('ClickTracking');
     UsabilityInitiativeHooks::initialize();
     UsabilityInitiativeHooks::addStyle('ClickTracking/SpecialClickTracking.css');
     UsabilityInitiativeHooks::addScript('ClickTracking/SpecialClickTracking.js');
 }
 function __construct()
 {
     parent::__construct('SemanticSocialProfile', 'editinterface');
     wfLoadExtensionMessages('SemanticSocialProfile');
     $wiki = SpecialWikiVersion::getVersion($this);
     $this->_output = $wiki->out();
     $this->_user = $wiki->user();
 }
	/**
	 * Constructor
	 */
	public function __construct() {
		global $smwgBrowseShowAll;
		parent::__construct( 'Browse', '', true, false, 'default', true );
		if ( $smwgBrowseShowAll ) {
			SMWSpecialBrowse::$incomingvaluescount = 21;
			SMWSpecialBrowse::$incomingpropertiescount = - 1;
		}
	}
 /**
  * Constructor. Invoke the super class's constructor with the default arguments.
  */
 function __construct()
 {
     global $wgSpecialPageGroups;
     // Initiate SpecialPage's constructor
     parent::__construct('Connect');
     // Add this special page to the "login" group of special pages
     $wgSpecialPageGroups['Connect'] = 'login';
 }
 function __construct()
 {
     SpecialPage::__construct('PromoterAds');
     // Make sure we have a session
     wfSetupSession();
     // Load things that may have been serialized into the session
     $this->adFilterString = $this->getPRSessionVar('adFilterString', '');
 }
Example #27
0
 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct('Filters');
     // Backwards compatibility for MediaWiki < 1.16
     if (version_compare($GLOBALS['wgVersion'], '1.16', '<')) {
         wfLoadExtensionMessages('SemanticDrilldown');
     }
 }
 function __construct()
 {
     global $wgUser;
     self::loadMessages();
     parent::__construct(wfMsg('changeauthor-short'), 'changeauthor');
     $this->selfTitle = Title::makeTitleSafe(NS_SPECIAL, wfMsg('changeauthor-short'));
     $this->skin = $wgUser->getSkin();
 }
 public function __construct()
 {
     $this->app = F::app();
     $this->out = $this->app->getGlobal('wgOut');
     $this->request = $this->app->getGlobal('wgRequest');
     $this->user = $this->app->getGlobal('wgUser');
     parent::__construct('ScavengerHunt', 'scavengerhunt');
 }
	public function __construct() {
		parent::__construct( 'SpecialWikiAtHome' );

		$realFunction = array( 'SpecialPage', 'setGroup' );
		if ( is_callable( $realFunction ) ) {
			parent::setGroup( 'SpecialWikiAtHome', 'media' );
		}
	}