예제 #1
0
 /**
  * Returns an singleton instance of this class
  * @return
  */
 public static function getInstance()
 {
     if (self::$instance == null) {
         self::$instance = new SmsGatewaysMapper();
     }
     return self::$instance;
 }
예제 #2
0
 /**
  * Initializes DB mappers
  *
  * @param object $config
  * @param object $args
  * @return
  */
 function __construct($config, $args)
 {
     $this->mapper = SmsGatewaysMapper::getInstance();
     $this->config = $config;
     $this->args = $args;
 }