Пример #1
0
 /**
  * Returns an singleton instance of this class
  * @return
  */
 public static function getInstance()
 {
     if (self::$instance == null) {
         self::$instance = new CmsSettingsMapper();
     }
     return self::$instance;
 }
Пример #2
0
 /**
  * Initializes DB mappers
  *
  * @return
  */
 function __construct()
 {
     $this->mapper = CmsSettingsMapper::getInstance();
     $this->cacheAllVars();
 }