public function setup() { parent::setup(); self::$errId = null; // assume 'sgExtraNamespaces' array doesn't exist $this->sgid = 0; // assume default. $r = $this->checkTable(); if ($r == false) { return; } // setup 'supergroup' id based on looking up // user in the 'supergroups' database table global $wgUser; $this->sgid = $this->getSgId($wgUser); // namespace boundary checks // only allowed 256 namespaces per SuperGroup $r = $this->checkBoundaries(); // if we got a 'null', then not much to do! // (i.e. there is no 'extra' namespaces asked for) if ($r === null) { return; } // if we got 'false', then an error with the // namespace ids was declared. if ($r == false) { self::$errId = true; return; } // if we got a 'true' response, then let's setup! $this->setupExtraNamespaceSet(); }
function ClipboardClass() { parent::__construct(); // required by ExtensionClass global $wgHooks; $wgHooks['MonoBookTemplateToolboxEnd'][] = array($this, 'hToolboxEnd'); $wgHooks['BeforePageDisplay'][] = array($this, 'hBeforePageDisplay'); $this->_scriptsAdded = false; }
public function setup() { parent::setup(); }
public function RequestTools() { return parent::__construct(self::$mgwords); }