Exemplo n.º 1
0
 /**
  * Returns iContact API client
  * @return iClientApi
  */
 public function getClient()
 {
     if (null === $this->client) {
         $this->client = OP_iContactApi::getInstance($this->logger)->setConfig(array('appId' => OP_ICONTACT_APP_ID, 'apiUsername' => $this->username, 'apiPassword' => $this->password));
     }
     return $this->client;
 }
Exemplo n.º 2
0
 /**
  * This resets the singleton instance to null
  * @static
  * @access public
  * @return void
  **/
 public static function resetInstance()
 {
     // Reset the instance
     self::$oInstance = null;
 }