Пример #1
0
 /**
  * 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;
 }
Пример #2
0
 /**
  * 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);
 }
Пример #3
0
 /**
  * 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;
 }
Пример #4
0
 /**
  * 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;
 }
Пример #5
0
 /**
  * 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;
 }
Пример #6
0
 /**
  * Gets the unique class instance
  * 
  * This method is used to get the unique instance of the class
  * (singleton). If no instance is available, it will create it.
  * 
  * @return  Woops_String_Utils  The unique instance of the class
  * @see     __construct
  */
 public static function getInstance()
 {
     // Checks if the unique instance already exists
     if (!is_object(self::$_instance)) {
         // Creates the unique instance
         self::$_instance = new self();
     }
     // Returns the unique instance
     return self::$_instance;
 }
Пример #7
0
 /**
  * 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;
 }