/** * Returns class instance * * @return YNCONTACTIMPORTER_BOL_JoinedService */ public static function getInstance() { if (!isset(self::$classInstance)) { self::$classInstance = new self(); } return self::$classInstance; }
function yncontactimporter_on_user_join(OW_Event $event) { $params = $event->getParams(); $userId = $params['userId']; YNCONTACTIMPORTER_BOL_JoinedService::getInstance()->onUserRegister($userId); }