public function __construct() { $this->_errors = POCErrorsHolder::Instance(); $this->_pocInstance = PieceOfCode::Instance(); $this->_storeCodes = POCStoredCodes::Instance(); $this->clear(); }
protected function __construct() { $this->_errors = POCErrorsHolder::Instance(); $this->_connections = array(); $this->_isLoaded = false; $this->load(); }
protected function __construct() { global $wgDBtype; $this->_errors = POCErrorsHolder::Instance(); $this->_flags = array(); $this->_dbtype = $wgDBtype; $this->createTable(); }
protected function __construct() { global $wgDBtype; $this->_errors = POCErrorsHolder::Instance(); $this->_flags = POCFlags::Instance(); $this->_dbtype = $wgDBtype; $this->upToVersion(PieceOfCode::Property('version')); $this->upRevision(); }
protected function __construct() { global $wgDBtype; $this->_errors = POCErrorsHolder::Instance(); $this->_history = POCHistoryManager::Instance(); $this->_isLoaded = false; $this->_dbtype = $wgDBtype; $this->createTable(); }
protected function __construct() { global $wgDBtype; global $wgPieceOfCodeConfig; $this->_errors = POCErrorsHolder::Instance(); $this->_flags = POCFlags::Instance(); $this->_dbtype = $wgDBtype; if ($wgPieceOfCodeConfig['history']) { $this->createTable(); } }
protected function __construct() { global $wgDBtype; $this->_errors = POCErrorsHolder::Instance(); $this->_isLoaded = false; $this->_dbtype = $wgDBtype; if ($this->isEnabled()) { $this->createTables(); $this->removeObsolete(); $this->updateNews(); } }
/** * This class method looks for a hook for tag <syntaxhighlight> or * <source%gt;. When one of these tags is present, it means, the * extension SyntaxHighlight is loaded. * @param $tag When this method finishes, this parameter contains the * tag. Or a null string when it's not found. * @return Returns true when a tag is found. Otherwise, false. */ public static function CheckSyntaxHighlightExtension(&$tag) { $tag = ''; global $wgParser; $tags = $wgParser->getTags(); if (in_array('syntaxhighlight', $tags)) { $tag = 'syntaxhighlight'; } elseif (in_array('source', $tags)) { $tag = 'source'; } if (!$tag) { POCErrorsHolder::Instance()->setLastError(wfMsg('poc-errmsg-stylecode-extension')); return false; } else { return true; } }