SharingEventManager
Table of Contents
Constants
-
SHARED_EVENT_COLLAB_TYPE
= \Bitrix\Calendar\Core\Event\Tools\Dictionary::EVENT_TYPE['shared_collab']
-
SHARED_EVENT_CRM_TYPE
= \Bitrix\Calendar\Core\Event\Tools\Dictionary::EVENT_TYPE['shared_crm']
-
SHARED_EVENT_TYPE
= \Bitrix\Calendar\Core\Event\Tools\Dictionary::EVENT_TYPE['shared']
Methods
-
__construct()
: mixed
-
createEvent()
: Result
-
deactivateEventLink()
: $this
-
deleteEvent()
: Result
-
getCrmEventDataFromRequest()
: array<string|int, mixed>
-
getEventDataFromRequest()
: array<string|int, mixed>
-
getSharingEventNameByDealId()
: string
-
getSharingEventNameByUserId()
: string
-
getSharingEventNameByUserName()
: string
-
getSharingEventTypes()
: array<string|int, string>
-
isEmailCorrect()
: bool
-
isPhoneNumberCorrect()
: bool
-
onSharingCommonEventDeclined()
: mixed
-
onSharingEventDeleted()
: void
-
onSharingEventEdit()
: void
-
onSharingEventMeetingStatusChange()
: void
-
prepareEventForSave()
: Event
-
reSaveEventWithoutAttendeesExceptHostAndSharingLinkOwner()
: void
-
setCanceledTimeOnSharedLink()
: void
-
setDeclinedStatusOnLinkOwnerEvent()
: mixed
-
setEvent()
: $this
-
validateContactData()
: bool
-
validateContactName()
: bool
SHARED_EVENT_COLLAB_TYPE
public
mixed
SHARED_EVENT_COLLAB_TYPE
= \Bitrix\Calendar\Core\Event\Tools\Dictionary::EVENT_TYPE['shared_collab']
SHARED_EVENT_CRM_TYPE
public
mixed
SHARED_EVENT_CRM_TYPE
= \Bitrix\Calendar\Core\Event\Tools\Dictionary::EVENT_TYPE['shared_crm']
SHARED_EVENT_TYPE
public
mixed
SHARED_EVENT_TYPE
= \Bitrix\Calendar\Core\Event\Tools\Dictionary::EVENT_TYPE['shared']
__construct()
public
__construct(Event $event[, int|null $hostId = null ][, int|null $ownerId = null ][, Link|null $link = null ]) : mixed
Parameters
-
$event
: Event
-
-
$hostId
: int|null
= null
-
-
$ownerId
: int|null
= null
-
-
$link
: Link|null
= null
-
createEvent()
public
createEvent([bool $sendInvitations = true ][, string $externalUserName = '' ]) : Result
Parameters
-
$sendInvitations
: bool
= true
-
-
$externalUserName
: string
= ''
-
-
throws
-
ArgumentException
deactivateEventLink()
public
deactivateEventLink(EventLink $eventLink) : $this
Parameters
-
$eventLink
: EventLink
-
-
throws
-
Exception
deleteEvent()
public
deleteEvent() : Result
-
throws
-
Exception
getCrmEventDataFromRequest()
public
static getCrmEventDataFromRequest(mixed $request) : array<string|int, mixed>
Parameters
-
$request
: mixed
-
Return values
array<string|int, mixed>
getEventDataFromRequest()
public
static getEventDataFromRequest(mixed $request) : array<string|int, mixed>
Parameters
-
$request
: mixed
-
Return values
array<string|int, mixed>
getSharingEventNameByDealId()
public
static getSharingEventNameByDealId(int $dealId) : string
Parameters
-
$dealId
: int
-
getSharingEventNameByUserId()
public
static getSharingEventNameByUserId(int $userId) : string
Parameters
-
$userId
: int
-
getSharingEventNameByUserName()
public
static getSharingEventNameByUserName(string|null $userName) : string
Parameters
-
$userName
: string|null
-
getSharingEventTypes()
public
static getSharingEventTypes() : array<string|int, string>
Return values
array<string|int, string>
isEmailCorrect()
public
static isEmailCorrect(string $userContact) : bool
Parameters
-
$userContact
: string
-
isPhoneNumberCorrect()
public
static isPhoneNumberCorrect(string $userContact) : bool
Parameters
-
$userContact
: string
-
onSharingCommonEventDeclined()
public
static onSharingCommonEventDeclined(EventLink $eventLink) : mixed
Parameters
-
$eventLink
: EventLink
-
onSharingEventDeleted()
public
static onSharingEventDeleted(int $eventId, string $eventType) : void
Parameters
-
$eventId
: int
-
-
$eventType
: string
-
onSharingEventEdit()
public
static onSharingEventEdit(array<string|int, mixed> $fields) : void
Parameters
-
$fields
: array<string|int, mixed>
-
-
throws
-
ArgumentException
-
throws
-
ObjectPropertyException
-
throws
-
SystemException
onSharingEventMeetingStatusChange()
public
static onSharingEventMeetingStatusChange(int $userId, string $currentMeetingStatus, array<string|int, mixed> $userEventBeforeChange[, bool|null $isAutoAccept = false ]) : void
Parameters
-
$userId
: int
-
-
$currentMeetingStatus
: string
-
-
$userEventBeforeChange
: array<string|int, mixed>
-
-
$isAutoAccept
: bool|null
= false
-
-
throws
-
ArgumentException
-
throws
-
ObjectPropertyException
-
throws
-
SystemException
prepareEventForSave()
public
static prepareEventForSave(mixed $data, mixed $userId, JointLink $link) : Event
Parameters
-
$data
: mixed
-
-
$userId
: mixed
-
-
$link
: JointLink
-
reSaveEventWithoutAttendeesExceptHostAndSharingLinkOwner()
public
static reSaveEventWithoutAttendeesExceptHostAndSharingLinkOwner(EventLink $eventLink) : void
Parameters
-
$eventLink
: EventLink
-
setCanceledTimeOnSharedLink()
public
static setCanceledTimeOnSharedLink(int $eventId) : void
Parameters
-
$eventId
: int
-
-
throws
-
ArgumentException
-
throws
-
ObjectPropertyException
-
throws
-
SystemException
setDeclinedStatusOnLinkOwnerEvent()
public
static setDeclinedStatusOnLinkOwnerEvent(EventLink $eventLink) : mixed
Parameters
-
$eventLink
: EventLink
-
setEvent()
public
setEvent(Event $event) : $this
Parameters
-
$event
: Event
-
public
static validateContactData(string $userContact) : bool
Parameters
-
$userContact
: string
-
public
static validateContactName(string $userName) : bool
Parameters
-
$userName
: string
-