/** * */ public final function __construct() { // Calls the parent constructor parent::__construct(); // Checks if the static variables are set if (!self::$_hasStatic) { // Sets the static variables self::_setStaticVars(); } }
/** * Class constructor * * @return void */ public function __construct() { // Call the parent constructor parent::__construct(); // Checks if the static variables are set if (!self::$_hasStatic) { // Sets the static variables self::_setStaticVars(); } $this->_modClass = get_class($this); $this->_modName = substr($this->_modClass, 10, strpos($this->_modClass, '_', 10) - 10); $this->_modPath = self::$_modManager->getModulePath($this->_modName); $this->_modRelPath = self::$_modManager->getModuleRelativePath($this->_modName); try { $this->_lang = Woops_Core_Lang_Getter::getInstance($this->_modPath . 'lang' . DIRECTORY_SEPARATOR . str_replace('Woops_Mod_' . $this->_modName . '_', '', $this->_modClass) . '.'); } catch (Woops_Core_Lang_Getter_Exception $e) { if ($e->getCode() === Woops_Core_Lang_Getter_Exception::EXCEPTION_NO_LANG_FILE) { $this->_lang = Woops_Core_Lang_Getter::getDefaultInstance(); } else { throw $e; } } }