Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
profile.php
1<?php
2
4
11{
12 const WEBPACKER = 'webpacker';
13 const USE_LANG_CAMEL_CASE = 'useLangCamelCase';
14 const USE_ALL_LANGS = 'useAllLangs';
15 const DELETE_LANG_PREFIXES = 'deleteLangPrefixes';
16 const CALL_METHOD = 'callMethod';
17 const PROPERTIES = 'properties';
18
19 protected $callMethod = '';
20 protected $callParameter = [];
21 protected $properties = [];
22 protected $useLangCamelCase = false;
23 protected $useAllLangs = false;
24 protected $language = null;
25 protected $deleteLangPrefixes = [];
26
33 public function __construct($callMethod = null, array $callParameter = null)
34 {
35 if ($callMethod)
36 {
38 }
40 {
42 }
43 }
44
52 public function setProperty($name, $value)
53 {
54 if ($value === null || $value === '')
55 {
56 unset($this->properties[$name]);
57 }
58 else
59 {
60 $this->properties[$name] = $value;
61 }
62
63 return $this;
64 }
65
72 public function getProperty($code)
73 {
74 return $this->properties[$code] ?? null;
75 }
76
82 public function getProperties()
83 {
84 return $this->properties;
85 }
86
92 public function getCallMethod()
93 {
94 return $this->callMethod;
95 }
96
102 public function getCallParameter()
103 {
105 }
106
113 public function setCallMethod($callMethod)
114 {
115 $this->callMethod = $callMethod;
116 return $this;
117 }
118
125 public function setCallParameter(array $callParameter)
126 {
127 $this->callParameter = $callParameter;
128 return $this;
129 }
130
137 public function useLangCamelCase($use)
138 {
139 $this->useLangCamelCase = (bool) $use;
140 return $this;
141 }
142
149 public function useAllLangs($use)
150 {
151 $this->useAllLangs = (bool) $use;
152 return $this;
153 }
154
161 public function deleteLangPrefixes($prefixes)
162 {
163 $this->deleteLangPrefixes = $prefixes;
164 return $this;
165 }
166
172 public function isLangCamelCase()
173 {
175 }
176
182 public function isAllLangs()
183 {
184 return $this->useAllLangs;
185 }
186
192 public function getLanguage()
193 {
194 return $this->language;
195 }
196
203 public function setLanguage($language)
204 {
205 $this->language = $language;
206 return $this;
207 }
208
214 public function getDeleteLangPrefixes()
215 {
217 }
218}
__construct($callMethod=null, array $callParameter=null)
Definition profile.php:33