コード例 #1
0
ファイル: Render.php プロジェクト: knatorski/SMS
 public function __construct($start, $end, $ip)
 {
     parent::__construct();
     $this->_start = $start;
     $this->_end = $end;
     $this->_ip = $ip;
     $this->_model = new WsServiceCounter();
 }
コード例 #2
0
ファイル: Package.php プロジェクト: knatorski/SMS
 public function __construct($mode)
 {
     parent::__construct();
     $this->_mode = $mode;
     switch ($mode) {
         case self::SMS_MODE:
             $this->_packageModel = new WsPackageSms();
             break;
         case self::MAIL_MODE:
             $this->_packageModel = new WsPackageMail();
             break;
         default:
             $this->_mode = null;
             throw new Logic_Exception("{$mode} is not valid mode for package!");
     }
 }
コード例 #3
0
ファイル: Service.php プロジェクト: knatorski/SMS
 /**
  * 
  * @param Base_Model_Table $model
  */
 public function __construct(Base_Model_Table $model = null)
 {
     $this->_model = $model;
     parent::__construct();
 }
コード例 #4
0
ファイル: Abstract.php プロジェクト: knatorski/SMS
 /**
  * Konstruktor
  *
  * @param Base_Model_Table $dbModelTable
  */
 public function __construct(Base_Model_Table $dbModelTable = null)
 {
     $this->dbModelTable = $dbModelTable;
     parent::__construct();
 }