/** * Sets the needed static variables * * @return void */ private static function _setStaticVars() { // Gets the instance of the string utilities self::$_str = Woops_String_Utils::getInstance(); // Static variables are set self::$_hasStatic = true; }
/** * Class constructor * * @return void */ private function __construct() { $this->_conf = Woops_Core_Config_Getter::getInstance(); $this->_env = Woops_Core_Env_Getter::getInstance(); $this->_request = Woops_Core_Request_Getter::getInstance(); $this->_db = Woops_Database_Layer::getInstance()->getEngine(); $this->_str = Woops_String_Utils::getInstance(); $this->_pageId = $this->_getPageId(); $this->_langName = $this->_getLanguage(); $this->_page = $this->_getPage($this->_pageId, $this->_langName); $this->_template = $this->_getTemplate($this->_page->id_templates); }
/** * Sets the needed static variables * * @return void */ private static function _setStaticVars() { // Gets the instance of the WOOPS page getter self::$_pageGetter = Woops_Page_Getter::getInstance(); // Gets the instance of the environment object self::$_env = Woops_Core_Env_Getter::getInstance(); // Gets the instance of the configuration object self::$_conf = Woops_Core_Config_Getter::getInstance(); // Gets the instance of the string utilities self::$_str = Woops_String_Utils::getInstance(); // Static variables are set self::$_hasStatic = true; }
/** * Sets the needed static variables * * @return void */ private static function _setStaticVars() { // Gets the instance of the string utilities self::$_str = Woops_String_Utils::getInstance(); // Gets the instance of the configuration object self::$_conf = Woops_Core_Config_Getter::getInstance(); // Sets the XML formatting option self::$_formattedOutput = (bool) self::$_conf->getVar('xml', 'format'); // Static variables are set self::$_hasStatic = true; }
/** * Sets the needed static variables * * @return void */ private static function _setStaticVars() { // Gets the instance of the string utilities self::$_str = Woops_String_Utils::getInstance(); // Gets the instance of the string utilities self::$_array = Woops_Array_Utils::getInstance(); // Gets the instance of the file types class self::$_fileTypes = Woops_File_Types::getInstance(); // Gets the instance of the environment object self::$_env = Woops_Core_Env_Getter::getInstance(); // Sets the newline character (CR-LF) self::$_CRLF = self::$_str->CR . self::$_str->LF; // Sets the boundary for multipart/form-data self::$_boundary = 'WOOPS-' . self::$_str->uniqueId(); // Static variables are set self::$_hasStatic = true; }
/** * Sets the needed static variables * * @return void */ private static function _setStaticVars() { self::$_conf = Woops_Core_Config_Getter::getInstance(); self::$_modManager = Woops_Core_Module_Manager::getInstance(); self::$_request = Woops_Core_Request_Getter::getInstance(); self::$_env = Woops_Core_Env_Getter::getInstance(); self::$_str = Woops_String_Utils::getInstance(); self::$_moduleVariables = self::$_request->getWoopsVar('mod'); // Static variables are set self::$_hasStatic = true; }