/** * 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; }
/** * This resets the singleton instance to null * @static * @access public * @return void **/ public static function resetInstance() { // Reset the instance self::$oInstance = null; }