1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс Helper

Открытые статические члены

static payAttentionToNewSharingFeature ()
static disableOptionPayAttentionToNewSharingFeature ()
static isPhoneFeatureEnabled ()
static isMailFeatureEnabled ()
static getShortUrl (string $url)
static getPersonFullNameLoc (?string $name, ?string $lastName)
static getOwnerInfo (int $id)
static getUserInfo (int $userId)
static getGroupOwnerInfo (int $groupId)
static getLinkOwnerInfo (array $link)
static formatDate (Date $date)
static formatDateWithoutTime (Date $date)
static formatDateShort (Date $date)
static formatTimeInterval (Date $from, Date $to, bool $isFullDay)
static formatTimezone (DateTimeZone $timezone)
static getUserDateTimestamp (Date $date)
static getEventTimestampUTC (DateTime $date, ?string $eventTimezone=null)
static createSharingLinkExpireDate (?DateTime $dateTime, string $linkType)
static createSharingJointLinkExpireDate (?DateTime $dateTime)
static getPageAbuseLink (int $ownerId, string $calendarLink)
static getEmailAbuseLink (int $ownerId, string $calendarLink)
static getBitrix24Link ()
static setSiteLanguage ()

Поля данных

const ACTION = 'action'
const ICS = 'ics'
const CANCEL = 'cancel'
const CONFERENCE = 'videoconference'
const OPENED = 'opened'
const OWNER_CREATED = 'ownerCreated'
const ACTION_ICS = '?'.self::ACTION.'='.self::ICS
const ACTION_CANCEL = '?'.self::ACTION.'='.self::CANCEL
const ACTION_CONFERENCE = '?'.self::ACTION.'='.self::CONFERENCE
const ACTION_OPENED = '?'.self::ACTION.'='.self::OPENED

Защищенные данные

const ABUSE_SENDER_PAGE = 'page'
const ABUSE_SENDER_EMAIL = 'email'

Подробное описание

См. определение в файле helper.php строка 21

Методы

◆ createSharingJointLinkExpireDate()

createSharingJointLinkExpireDate ( ?DateTime $dateTime)
static

returns the expiration date of sharing multi link

Аргументы
DateTime | null$dateTime
Возвращает
DateTime|null

См. определение в файле helper.php строка 373

◆ createSharingLinkExpireDate()

createSharingLinkExpireDate ( ?DateTime $dateTime,
string $linkType )
static

returns the expiration date of sharing link according to the date of need and the type of link

Аргументы
DateTime | null$dateTime
string$linkType
Возвращает
DateTime|null

См. определение в файле helper.php строка 351

◆ disableOptionPayAttentionToNewSharingFeature()

disableOptionPayAttentionToNewSharingFeature ( )
static

disabling sharing tour in calendar for user

Возвращает
void

См. определение в файле helper.php строка 55

◆ formatDate()

formatDate ( Date $date)
static

examples: DAY_MONTH_FORMAT "December 31" SHORT_TIME_FORMAT "2:05 pm"

Аргументы
Date$date
Возвращает
string

См. определение в файле helper.php строка 195

◆ formatDateShort()

formatDateShort ( Date $date)
static

example: FORMAT_DATE "12/31/2019"

Аргументы
Date$date
Возвращает
string

См. определение в файле helper.php строка 235

◆ formatDateWithoutTime()

formatDateWithoutTime ( Date $date)
static

examples: DAY_MONTH_FORMAT "December 31"

Аргументы
Date$date
Возвращает
string

См. определение в файле helper.php строка 216

◆ formatTimeInterval()

formatTimeInterval ( Date $from,
Date $to,
bool $isFullDay )
static
Аргументы
Date$from
Date$to
bool$isFullDay
Возвращает
string

См. определение в файле helper.php строка 249

◆ formatTimezone()

formatTimezone ( DateTimeZone $timezone)
static
Аргументы
DateTimeZone$timezone
Возвращает
string
Исключения

Exception

См. определение в файле helper.php строка 304

◆ getBitrix24Link()

getBitrix24Link ( )
static

См. определение в файле helper.php строка 414

◆ getEmailAbuseLink()

getEmailAbuseLink ( int $ownerId,
string $calendarLink )
static

См. определение в файле helper.php строка 383

◆ getEventTimestampUTC()

getEventTimestampUTC ( DateTime $date,
?string $eventTimezone = null )
static
Аргументы
DateTime$date
string | null$eventTimezone
Возвращает
int

См. определение в файле helper.php строка 340

◆ getGroupOwnerInfo()

getGroupOwnerInfo ( int $groupId)
static

См. определение в файле helper.php строка 166

◆ getLinkOwnerInfo()

getLinkOwnerInfo ( array $link)
static

См. определение в файле helper.php строка 180

◆ getOwnerInfo()

getOwnerInfo ( int $id)
static
Аргументы
int$id
Возвращает
array

См. определение в файле helper.php строка 139

◆ getPageAbuseLink()

getPageAbuseLink ( int $ownerId,
string $calendarLink )
static

См. определение в файле helper.php строка 378

◆ getPersonFullNameLoc()

getPersonFullNameLoc ( ?string $name,
?string $lastName )
static
Аргументы
string$name
string$lastName
Возвращает
string

См. определение в файле helper.php строка 123

◆ getShortUrl()

getShortUrl ( string $url)
static

generates short url

Аргументы
string$url
Возвращает
string

См. определение в файле helper.php строка 106

◆ getUserDateTimestamp()

getUserDateTimestamp ( Date $date)
static
Аргументы
Date$date
Возвращает
int

См. определение в файле helper.php строка 320

◆ getUserInfo()

getUserInfo ( int $userId)
static

См. определение в файле helper.php строка 144

◆ isMailFeatureEnabled()

isMailFeatureEnabled ( )
static

returns true if we can send calendar sharing messages using email, false otherwise

Возвращает
bool
Исключения
Main

LoaderException

См. определение в файле helper.php строка 91

◆ isPhoneFeatureEnabled()

isPhoneFeatureEnabled ( )
static

returns true if we can send calendar sharing messages using phone number, false otherwise

Возвращает
bool

См. определение в файле helper.php строка 81

◆ payAttentionToNewSharingFeature()

payAttentionToNewSharingFeature ( )
static
Возвращает
?string

См. определение в файле helper.php строка 46

◆ setSiteLanguage()

setSiteLanguage ( )
static

См. определение в файле helper.php строка 432

Поля

◆ ABUSE_SENDER_EMAIL

const ABUSE_SENDER_EMAIL = 'email'
protected

См. определение в файле helper.php строка 39

◆ ABUSE_SENDER_PAGE

const ABUSE_SENDER_PAGE = 'page'
protected

См. определение в файле helper.php строка 38

◆ ACTION

const ACTION = 'action'

См. определение в файле helper.php строка 27

◆ ACTION_CANCEL

const ACTION_CANCEL = '?'.self::ACTION.'='.self::CANCEL

См. определение в файле helper.php строка 34

◆ ACTION_CONFERENCE

const ACTION_CONFERENCE = '?'.self::ACTION.'='.self::CONFERENCE

См. определение в файле helper.php строка 35

◆ ACTION_ICS

const ACTION_ICS = '?'.self::ACTION.'='.self::ICS

См. определение в файле helper.php строка 33

◆ ACTION_OPENED

const ACTION_OPENED = '?'.self::ACTION.'='.self::OPENED

См. определение в файле helper.php строка 36

◆ CANCEL

const CANCEL = 'cancel'

См. определение в файле helper.php строка 29

◆ CONFERENCE

const CONFERENCE = 'videoconference'

См. определение в файле helper.php строка 30

◆ ICS

const ICS = 'ics'

См. определение в файле helper.php строка 28

◆ OPENED

const OPENED = 'opened'

См. определение в файле helper.php строка 31

◆ OWNER_CREATED

const OWNER_CREATED = 'ownerCreated'

См. определение в файле helper.php строка 32


Объявления и описания членов класса находятся в файле:
  • C:/bitrix/modules/calendar/lib/sharing/helper.php