protected function __construct() { global $wgDBtype; $this->_errors = POCErrorsHolder::Instance(); $this->_history = POCHistoryManager::Instance(); $this->_isLoaded = false; $this->_dbtype = $wgDBtype; $this->createTable(); }
public function __construct() { parent::__construct('PieceOfCode'); /* * Checking and updating version. */ $this->_versionManager = POCVersionManager::Instance(); /* * Setting tag-kooks. */ if (defined('MEDIAWIKI')) { global $wgParser; $wgParser->setHook('pieceofcode', array(&$this, 'parse')); } $this->_errors = POCErrorsHolder::Instance(); $this->_flags = POCFlags::Instance(); $this->_history = POCHistoryManager::Instance(); $this->_svnConnections = POCSVNConnections::Instance(); $this->_storedCodes = POCStoredCodes::Instance(); $this->_stats = POCStats::Instance(); $this->_errors->clearError(); }