Пример #1
0
 /**
  * A static method which returns the instance of this DB class.
  * @return object of DB class
  */
 public static function getInstance()
 {
     if (!isset(self::$_instance)) {
         self::$_instance = new DB();
     }
     return self::$_instance;
 }
Пример #2
0
 /**
  * @method init
  * Variable que guarda la accion a realizar
  * @access public
  *
  */
 public function init()
 {
     $this->getControllerMenu();
     $this->getControllerPage();
     $this->getControllerRequest();
     $this->getControllerSession();
     $this->getControllerToken();
     $this->getControllerAccess();
     $this->getControllerFormat();
     $this->getControllerCookie();
     $this->db = modelDB::getInstance();
 }