Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
button.php
1<?
3
5
6Loc::loadMessages(__FILE__);
7
12class Button
13{
14 const ENUM_TYPE_OPEN_LINE = 'openline';
15 const ENUM_TYPE_CRM_FORM = 'crmform';
16 const ENUM_TYPE_CALLBACK = 'callback';
17
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}
static loadMessages($file)
Definition loc.php:64
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29