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

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

static setContacts (int $siteId, array $data)
static getContactsRaw ()
static getContacts (int $siteId)
static clearContactsCache ()
static onAfterCompanyChange (array $fields)
static getReplacesForContent (int $siteId, bool $attributesReplace=true)
static getReplaceRequisiteCompanyNameForContent (string $xmlId)
static getMyRequisites ()
static getMyRequisitesPlainList (array $requisites=[], string $requisitesType='requisites')
static getCompanyCommunications (int $companyId)

Защищенные статические члены

static addNewCompany (string $title, string $phone)

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

const CACHE_TAG = 'landing_crm_contacts'
const OPTION_DATA_CODE = 'shop_master_data'
const ID_KEY = 'ID'
const COMPANY_KEY = 'COMPANY'
const PHONE_KEY = 'PHONE'
const EMAIL_KEY = 'EMAIL'
const DEFAULT_COMPANY = 'Company24'
const DEFAULT_PHONE = '+123456789'
const DEFAULT_EMAIL = 'info@company24.com'
const DEFAULT_CONTACTS

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

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

Методы

◆ addNewCompany()

addNewCompany ( string $title,
string $phone )
staticprotected

Adds new company to storage contacts.

Аргументы
string$titleCompany title.
string$phoneCompany phone.
Возвращает
void

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

◆ clearContactsCache()

clearContactsCache ( )
static

Clears contacts data cache.

Возвращает
void

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

◆ getCompanyCommunications()

getCompanyCommunications ( int $companyId)
static

Returns all company's communication variants.

Аргументы
int$companyIdCompany ID.
Возвращает
array

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

◆ getContacts()

getContacts ( int $siteId)
static

Returns CRM contacts for default company.

Аргументы
int$siteIdSite id.
Возвращает
array

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

◆ getContactsRaw()

getContactsRaw ( )
static

Returns contacts data from DB.

Возвращает
array

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

◆ getMyRequisites()

getMyRequisites ( )
static

Returns requisites each of my companies.

Возвращает
array

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

◆ getMyRequisitesPlainList()

getMyRequisitesPlainList ( array $requisites = [],
string $requisitesType = 'requisites' )
static

Returns requisites each of my companies (as plain list).

Аргументы
array$requisitesrequisites each of my companies.
string$requisitesTypetype of requisites.
Возвращает
array

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

◆ getReplaceRequisiteCompanyNameForContent()

getReplaceRequisiteCompanyNameForContent ( string $xmlId)
static

Returns replace-array for requisite company name.

Аргументы
string$xmlIdlanding xml id.
Возвращает
array

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

◆ getReplacesForContent()

getReplacesForContent ( int $siteId,
bool $attributesReplace = true )
static

Returns replace-array for str_replace.

Аргументы
int$siteIdSite id.
bool$attributesReplaceReturn replace for inner attributes.
Возвращает
array

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

◆ onAfterCompanyChange()

onAfterCompanyChange ( array $fields)
static

Callback on after add and update crm companies.

Аргументы
array$fieldsCompany data.
Возвращает
void

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

◆ setContacts()

setContacts ( int $siteId,
array $data )
static

Saves CRM contacts for site.

Аргументы
int$siteIdSite id.
array$dataData to save (COMPANY:string, PHONE:string, EMAIL:string).
Возвращает
void

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

Поля

◆ CACHE_TAG

const CACHE_TAG = 'landing_crm_contacts'
protected

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

◆ COMPANY_KEY

const COMPANY_KEY = 'COMPANY'
protected

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

◆ DEFAULT_COMPANY

const DEFAULT_COMPANY = 'Company24'
protected

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

◆ DEFAULT_CONTACTS

const DEFAULT_CONTACTS
protected
Инициализатор
= [
self::COMPANY_KEY => self::DEFAULT_COMPANY,
self::PHONE_KEY => self::DEFAULT_PHONE,
self::EMAIL_KEY => self::DEFAULT_EMAIL,
]

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

◆ DEFAULT_EMAIL

const DEFAULT_EMAIL = 'info@company24.com'
protected

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

◆ DEFAULT_PHONE

const DEFAULT_PHONE = '+123456789'
protected

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

◆ EMAIL_KEY

const EMAIL_KEY = 'EMAIL'
protected

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

◆ ID_KEY

const ID_KEY = 'ID'
protected

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

◆ OPTION_DATA_CODE

const OPTION_DATA_CODE = 'shop_master_data'
protected

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

◆ PHONE_KEY

const PHONE_KEY = 'PHONE'
protected

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


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