コード例 #1
0
 /**
  * return an instance of this class. Ensure only one instance exists for a given request
  *
  * @return betfairDialogue object instance
  */
 public static function getInstance()
 {
     if (!isset(self::$instance)) {
         $c = __CLASS__;
         self::$instance = new $c();
     }
     return self::$instance;
 }
コード例 #2
0
 /**
  * return an instance of this class. Ensure only one instance exists for a given request
  *
  * @return betfairDialogue object instance
  */
 public static function getInstance()
 {
     if (!isset(self::$instance)) {
         $c = __CLASS__;
         self::$instance = new $c();
     }
     /* initialize the logger for this instance */
     $logger = betfairLogger::getInstance();
     return self::$instance;
 }
コード例 #3
0
 /**
  * set up the dialogue object, request function lists from the service WSDLs,
  *
  */
 public function prepareDialogue()
 {
     $this->dialogue = betfairDialogue::getInstance();
     $this->dialogue->connect();
     $this->dialogue->getFunctionsFromWSDL();
 }