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();
 }
 /**
  * @return Returns the singleton instance of this class POCVersionManager.
  */
 public static function Instance()
 {
     if (!isset(self::$_Instance)) {
         $c = __CLASS__;
         self::$_Instance = new $c();
     }
     return self::$_Instance;
 }