/** * Returns an singleton instance of this class * @return */ public static function getInstance() { if (self::$instance == null) { self::$instance = new SentSmsMapper(); } return self::$instance; }
/** * Initializes DB mappers * * @param object $config * @param object $args * @return */ function __construct($config, $args) { $this->mapper = SentSmsMapper::getInstance(); $this->config = $config; $this->args = $args; $this->armeniaTelCode = "374"; $this->validArmenianPrefix = explode(',', $this->getCmsVar('valid_cell_phone_numbers_prefix')); }