Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
profile.php
1
<?php
2
3
namespace
Bitrix\Main\Web\WebPacker\Resource
;
4
10
class
Profile
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
{
37
$this->
setCallMethod
(
$callMethod
);
38
}
39
if
(
$callParameter
)
40
{
41
$this->
setCallParameter
(
$callParameter
);
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
{
104
return
$this->callParameter
;
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
{
174
return
$this->useLangCamelCase
;
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
{
216
return
$this->deleteLangPrefixes
;
217
}
218
}
Bitrix\Main\Web\WebPacker\Resource\Profile
Definition
profile.php:11
Bitrix\Main\Web\WebPacker\Resource\Profile\$callParameter
$callParameter
Definition
profile.php:20
Bitrix\Main\Web\WebPacker\Resource\Profile\isLangCamelCase
isLangCamelCase()
Definition
profile.php:172
Bitrix\Main\Web\WebPacker\Resource\Profile\$useLangCamelCase
$useLangCamelCase
Definition
profile.php:22
Bitrix\Main\Web\WebPacker\Resource\Profile\USE_ALL_LANGS
const USE_ALL_LANGS
Definition
profile.php:14
Bitrix\Main\Web\WebPacker\Resource\Profile\getCallMethod
getCallMethod()
Definition
profile.php:92
Bitrix\Main\Web\WebPacker\Resource\Profile\USE_LANG_CAMEL_CASE
const USE_LANG_CAMEL_CASE
Definition
profile.php:13
Bitrix\Main\Web\WebPacker\Resource\Profile\$deleteLangPrefixes
$deleteLangPrefixes
Definition
profile.php:25
Bitrix\Main\Web\WebPacker\Resource\Profile\__construct
__construct($callMethod=null, array $callParameter=null)
Definition
profile.php:33
Bitrix\Main\Web\WebPacker\Resource\Profile\getDeleteLangPrefixes
getDeleteLangPrefixes()
Definition
profile.php:214
Bitrix\Main\Web\WebPacker\Resource\Profile\WEBPACKER
const WEBPACKER
Definition
profile.php:12
Bitrix\Main\Web\WebPacker\Resource\Profile\useLangCamelCase
useLangCamelCase($use)
Definition
profile.php:137
Bitrix\Main\Web\WebPacker\Resource\Profile\PROPERTIES
const PROPERTIES
Definition
profile.php:17
Bitrix\Main\Web\WebPacker\Resource\Profile\CALL_METHOD
const CALL_METHOD
Definition
profile.php:16
Bitrix\Main\Web\WebPacker\Resource\Profile\isAllLangs
isAllLangs()
Definition
profile.php:182
Bitrix\Main\Web\WebPacker\Resource\Profile\getCallParameter
getCallParameter()
Definition
profile.php:102
Bitrix\Main\Web\WebPacker\Resource\Profile\setCallParameter
setCallParameter(array $callParameter)
Definition
profile.php:125
Bitrix\Main\Web\WebPacker\Resource\Profile\deleteLangPrefixes
deleteLangPrefixes($prefixes)
Definition
profile.php:161
Bitrix\Main\Web\WebPacker\Resource\Profile\$properties
$properties
Definition
profile.php:21
Bitrix\Main\Web\WebPacker\Resource\Profile\$language
$language
Definition
profile.php:24
Bitrix\Main\Web\WebPacker\Resource\Profile\setCallMethod
setCallMethod($callMethod)
Definition
profile.php:113
Bitrix\Main\Web\WebPacker\Resource\Profile\setLanguage
setLanguage($language)
Definition
profile.php:203
Bitrix\Main\Web\WebPacker\Resource\Profile\DELETE_LANG_PREFIXES
const DELETE_LANG_PREFIXES
Definition
profile.php:15
Bitrix\Main\Web\WebPacker\Resource\Profile\$callMethod
$callMethod
Definition
profile.php:19
Bitrix\Main\Web\WebPacker\Resource\Profile\getProperties
getProperties()
Definition
profile.php:82
Bitrix\Main\Web\WebPacker\Resource\Profile\$useAllLangs
$useAllLangs
Definition
profile.php:23
Bitrix\Main\Web\WebPacker\Resource\Profile\setProperty
setProperty($name, $value)
Definition
profile.php:52
Bitrix\Main\Web\WebPacker\Resource\Profile\useAllLangs
useAllLangs($use)
Definition
profile.php:149
Bitrix\Main\Web\WebPacker\Resource\Profile\getProperty
getProperty($code)
Definition
profile.php:72
Bitrix\Main\Web\WebPacker\Resource\Profile\getLanguage
getLanguage()
Definition
profile.php:192
Bitrix\Main\Web\WebPacker\Resource
Definition
asset.php:3
modules
main
lib
web
webpacker
resource
profile.php
Создано системой
1.10.0