Ejemplo n.º 1
0
 /**
  *  getInstanceメソッド
  *
  *  このクラスのオブジェクトを生成する。
  *  既に生成されていたら、前回と同じものを返す。
  *
  *  @return object  $instance
  */
 public static function getInstance()
 {
     if (!self::$instance) {
         $className = __CLASS__;
         self::$instance = new $className();
     }
     return self::$instance;
 }
Ejemplo n.º 2
0
 /**
  *  コンストラクタ
  */
 public function __construct()
 {
     parent::__construct();
     // 設定データのインスタンスを取得
     $this->_configOBJ = ComConfig::getInstance();
     // デフォルトは1接続1送信
     /*
     if (!$this->_smtpSendType) {
         $this->_smtpSendType = self::SMTP_SEND_SINGLE;
     }
     */
 }