/** * 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; }
/** * 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; }
/** * 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(); }