См. определение в файле crm.php строка 12
◆ addNewCompany()
| addNewCompany |
( |
string | $title, |
|
|
string | $phone ) |
|
staticprotected |
Adds new company to storage contacts.
- Аргументы
-
| string | $title | Company title. |
| string | $phone | Company phone. |
- Возвращает
- void
См. определение в файле crm.php строка 38
◆ clearContactsCache()
Clears contacts data cache.
- Возвращает
- void
См. определение в файле crm.php строка 212
◆ getCompanyCommunications()
| getCompanyCommunications |
( |
int | $companyId | ) |
|
|
static |
Returns all company's communication variants.
- Аргументы
-
- Возвращает
- array
См. определение в файле crm.php строка 390
◆ getContacts()
| getContacts |
( |
int | $siteId | ) |
|
|
static |
Returns CRM contacts for default company.
- Аргументы
-
- Возвращает
- array
См. определение в файле crm.php строка 163
◆ getContactsRaw()
Returns contacts data from DB.
- Возвращает
- array
См. определение в файле crm.php строка 107
◆ getMyRequisites()
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 | $requisites | requisites each of my companies. |
| string | $requisitesType | type of requisites. |
- Возвращает
- array
См. определение в файле crm.php строка 370
◆ getReplaceRequisiteCompanyNameForContent()
| getReplaceRequisiteCompanyNameForContent |
( |
string | $xmlId | ) |
|
|
static |
Returns replace-array for requisite company name.
- Аргументы
-
| string | $xmlId | landing xml id. |
- Возвращает
- array
См. определение в файле crm.php строка 279
◆ getReplacesForContent()
| getReplacesForContent |
( |
int | $siteId, |
|
|
bool | $attributesReplace = true ) |
|
static |
Returns replace-array for str_replace.
- Аргументы
-
| int | $siteId | Site id. |
| bool | $attributesReplace | Return replace for inner attributes. |
- Возвращает
- array
См. определение в файле crm.php строка 241
◆ onAfterCompanyChange()
| onAfterCompanyChange |
( |
array | $fields | ) |
|
|
static |
Callback on after add and update crm companies.
- Аргументы
-
| array | $fields | Company data. |
- Возвращает
- void
См. определение в файле crm.php строка 225
◆ setContacts()
| setContacts |
( |
int | $siteId, |
|
|
array | $data ) |
|
static |
Saves CRM contacts for site.
- Аргументы
-
| int | $siteId | Site id. |
| array | $data | Data to save (COMPANY:string, PHONE:string, EMAIL:string). |
- Возвращает
- void
См. определение в файле crm.php строка 68
◆ CACHE_TAG
| const CACHE_TAG = 'landing_crm_contacts' |
|
protected |
◆ COMPANY_KEY
| const COMPANY_KEY = 'COMPANY' |
|
protected |
◆ DEFAULT_COMPANY
| const DEFAULT_COMPANY = 'Company24' |
|
protected |
◆ DEFAULT_CONTACTS
Инициализатор= [
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 |
◆ DEFAULT_PHONE
| const DEFAULT_PHONE = '+123456789' |
|
protected |
◆ EMAIL_KEY
| const EMAIL_KEY = 'EMAIL' |
|
protected |
◆ ID_KEY
◆ OPTION_DATA_CODE
| const OPTION_DATA_CODE = 'shop_master_data' |
|
protected |
◆ PHONE_KEY
| const PHONE_KEY = 'PHONE' |
|
protected |
Объявления и описания членов класса находятся в файле:
- C:/bitrix/modules/landing/lib/connector/crm.php