Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
labelfield.php
1<?php
2
4
6
12{
13 private $mode;
14 const JS_EVENT_ON_CHANGE = 'onChange';
15
22 public function __construct($key, $mode = 'small')
23 {
24 parent::__construct($key);
25 $this->setLabel(Loc::getMessage('REPORT_DEFAULT_LABEL_OF_LABEL_FIELD'));
26 $this->setDefaultValue('Title default Value');
27 $this->setMode($mode);
28 }
29
30
36 public function printContent()
37 {
38 switch ($this->getMode())
39 {
40 case 'small':
41 $this->includeFieldComponent('label');
42 break;
43 case 'big':
44 $this->includeFieldComponent('biglabel');
45 break;
46 default:
47 $this->includeFieldComponent('label');
48 }
49 }
50
54 public function getMode()
55 {
56 return $this->mode;
57 }
58
65 public function setMode($mode)
66 {
67 $this->mode = $mode;
68 }
69
70
71}
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29
includeFieldComponent($templateName, $params=array())
Definition base.php:530