Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
button.php
1
<?
2
namespace
Bitrix\B24Connector
;
3
4
use
Bitrix\Main\Localization\Loc
;
5
6
Loc::loadMessages
(__FILE__);
7
12
class
Button
13
{
14
const
ENUM_TYPE_OPEN_LINE
=
'openline'
;
15
const
ENUM_TYPE_CRM_FORM
=
'crmform'
;
16
const
ENUM_TYPE_CALLBACK
=
'callback'
;
17
18
const
ENUM_LOCATION_TOP_LEFT
= 1;
19
const
ENUM_LOCATION_TOP_MIDDLE
= 2;
20
const
ENUM_LOCATION_TOP_RIGHT
= 3;
21
const
ENUM_LOCATION_BOTTOM_RIGHT
= 4;
22
const
ENUM_LOCATION_BOTTOM_MIDDLE
= 5;
23
const
ENUM_LOCATION_BOTTOM_LEFT
= 6;
24
28
public
static
function
getTypeList
()
29
{
30
return
array(
31
self::ENUM_TYPE_OPEN_LINE =>
Loc::getMessage
(
'B24C_BUTTON_TYPE_NAME_'
.mb_strtoupper(self::ENUM_TYPE_OPEN_LINE)),
32
self::ENUM_TYPE_CRM_FORM =>
Loc::getMessage
(
'B24C_BUTTON_TYPE_NAME_'
.mb_strtoupper(self::ENUM_TYPE_CRM_FORM)),
33
self::ENUM_TYPE_CALLBACK =>
Loc::getMessage
(
'B24C_BUTTON_TYPE_NAME_'
.mb_strtoupper(self::ENUM_TYPE_CALLBACK))
34
);
35
}
36
40
public
static
function
getLocationList
()
41
{
42
return
array(
43
self::ENUM_LOCATION_TOP_LEFT =>
Loc::getMessage
(
'B24C_BUTTON_LOCATION_TOP_LEFT'
),
44
self::ENUM_LOCATION_TOP_MIDDLE =>
Loc::getMessage
(
'B24C_BUTTON_LOCATION_TOP_MIDDLE'
),
45
self::ENUM_LOCATION_TOP_RIGHT =>
Loc::getMessage
(
'B24C_BUTTON_LOCATION_TOP_RIGHT'
),
46
self::ENUM_LOCATION_BOTTOM_RIGHT =>
Loc::getMessage
(
'B24C_BUTTON_LOCATION_BOTTOM_RIGHT'
),
47
self::ENUM_LOCATION_BOTTOM_MIDDLE =>
Loc::getMessage
(
'B24C_BUTTON_LOCATION_BOTTOM_MIDDLE'
),
48
self::ENUM_LOCATION_BOTTOM_LEFT =>
Loc::getMessage
(
'B24C_BUTTON_LOCATION_BOTTOM_LEFT'
),
49
);
50
}
51
}
Bitrix\B24Connector\Button
Definition
button.php:13
Bitrix\B24Connector\Button\ENUM_LOCATION_BOTTOM_MIDDLE
const ENUM_LOCATION_BOTTOM_MIDDLE
Definition
button.php:22
Bitrix\B24Connector\Button\getTypeList
static getTypeList()
Definition
button.php:28
Bitrix\B24Connector\Button\ENUM_LOCATION_BOTTOM_RIGHT
const ENUM_LOCATION_BOTTOM_RIGHT
Definition
button.php:21
Bitrix\B24Connector\Button\ENUM_LOCATION_TOP_LEFT
const ENUM_LOCATION_TOP_LEFT
Definition
button.php:18
Bitrix\B24Connector\Button\ENUM_TYPE_OPEN_LINE
const ENUM_TYPE_OPEN_LINE
Definition
button.php:14
Bitrix\B24Connector\Button\ENUM_LOCATION_BOTTOM_LEFT
const ENUM_LOCATION_BOTTOM_LEFT
Definition
button.php:23
Bitrix\B24Connector\Button\ENUM_LOCATION_TOP_MIDDLE
const ENUM_LOCATION_TOP_MIDDLE
Definition
button.php:19
Bitrix\B24Connector\Button\getLocationList
static getLocationList()
Definition
button.php:40
Bitrix\B24Connector\Button\ENUM_TYPE_CALLBACK
const ENUM_TYPE_CALLBACK
Definition
button.php:16
Bitrix\B24Connector\Button\ENUM_LOCATION_TOP_RIGHT
const ENUM_LOCATION_TOP_RIGHT
Definition
button.php:20
Bitrix\B24Connector\Button\ENUM_TYPE_CRM_FORM
const ENUM_TYPE_CRM_FORM
Definition
button.php:15
Bitrix\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Main\Localization\Loc\loadMessages
static loadMessages($file)
Definition
loc.php:64
Bitrix\Main\Localization\Loc\getMessage
static getMessage($code, $replace=null, $language=null)
Definition
loc.php:29
Bitrix\B24Connector
Definition
button.php:2
modules
b24connector
lib
button.php
Создано системой
1.10.0