Bitrix API

MailContact

Class MailContact

Table of Contents

Constants

COLOR_AMBER  = '#FFC107'
COLOR_BLUE  = '#2fc6f6'
COLOR_BLUE_GREY  = '#607D8B'
COLOR_BROWN  = '#af7e00'
COLOR_CYAN  = '#47e4c2'
COLOR_DEEP_ORANGE  = '#FF5722'
COLOR_DEEP_PURPLE  = '#673AB7'
COLOR_GREEN  = '#9dcf01'
COLOR_GREY  = '#a8adb4'
COLOR_INDIGO  = '#3F51B5'
COLOR_LIGHT_BLUE  = '#56d1e0'
COLOR_LIGHT_GREEN  = '#8BC34A'
COLOR_LIME  = '#CDDC39'
COLOR_ORANGE  = '#ffa900'
COLOR_PINK  = '#ff5b55'
COLOR_PURPLE  = '#9985dd'
COLOR_RED  = '#F44336'
COLOR_TEAL  = '#009688'
COLOR_YELLOW  = '#FFEB3B'

Methods

getContactsData()  : array<string|int, mixed>
returns array of fields and their values for adding to database
getIconData()  : array<string|int, mixed>
getInitials()  : string
return two symbols from name and last name, or 1 - from name or email
getRandomColor()  : mixed

Constants

COLOR_BLUE_GREY

public mixed COLOR_BLUE_GREY = '#607D8B'

COLOR_DEEP_ORANGE

public mixed COLOR_DEEP_ORANGE = '#FF5722'

COLOR_DEEP_PURPLE

public mixed COLOR_DEEP_PURPLE = '#673AB7'

COLOR_LIGHT_BLUE

public mixed COLOR_LIGHT_BLUE = '#56d1e0'

COLOR_LIGHT_GREEN

public mixed COLOR_LIGHT_GREEN = '#8BC34A'

Methods

getContactsData()

returns array of fields and their values for adding to database

public static getContactsData(mixed $mailsField, mixed $userId, mixed $addedFrom) : array<string|int, mixed>
Parameters
$mailsField : mixed
$userId : mixed
$addedFrom : mixed
Tags
throws
ReflectionException
Return values
array<string|int, mixed>

getIconData()

public static getIconData(mixed $email, mixed $name[, null $lastName = null ]) : array<string|int, mixed>
Parameters
$email : mixed
$name : mixed
$lastName : null = null
Tags
throws
ReflectionException
Return values
array<string|int, mixed>

getInitials()

return two symbols from name and last name, or 1 - from name or email

public static getInitials(mixed $email[, mixed $name = null ][, null $lastName = null ]) : string
Parameters
$email : mixed
$name : mixed = null
$lastName : null = null
Return values
string

getRandomColor()

public static getRandomColor() : mixed
Tags
throws
ReflectionException

        
On this page

Search results