Bitrix-D7
20.5.0
|
Context of current request. Подробнее...
Открытые члены | |
__construct (Application $application) | |
Creates new instance of context. Подробнее... | |
initialize (Request $request, Response $response=null, Server $server, array $params=array()) | |
Initializes context by request and response objects. Подробнее... | |
getEnvironment () | |
getResponse () | |
Returns response object of the context. Подробнее... | |
setResponse (Response $response) | |
Sets response of the context. Подробнее... | |
getRequest () | |
Returns request object of the context. Подробнее... | |
getServer () | |
Returns server object of the context. Подробнее... | |
getApplication () | |
Returns backreference to Application. Подробнее... | |
getCulture () | |
Returns culture of the context. Подробнее... | |
getLanguage () | |
Returns current language (en, ru) Подробнее... | |
getSite () | |
Returns current site. Подробнее... | |
setCulture (Context\Culture $culture) | |
Sets culture of the context. Подробнее... | |
setLanguage ($language) | |
Sets language of the context. Подробнее... | |
setSite ($site) | |
Sets site of the context. Подробнее... | |
Открытые статические члены | |
static | getCurrent () |
Static method returns current instance of context. Подробнее... | |
Защищенные данные | |
$application | |
$response | |
$request | |
$server | |
$env | |
$culture | |
$params | |
Context of current request.
См. определение в файле main/lib/context.php строка 13
__construct | ( | Application | $application | ) |
Creates new instance of context.
Application | $application |
См. определение в файле main/lib/context.php строка 47
getApplication | ( | ) |
Returns backreference to Application.
См. определение в файле main/lib/context.php строка 121
getCulture | ( | ) |
Returns culture of the context.
См. определение в файле main/lib/context.php строка 131
|
static |
Static method returns current instance of context.
См. определение в файле main/lib/context.php строка 194
getEnvironment | ( | ) |
См. определение в файле main/lib/context.php строка 68
getLanguage | ( | ) |
Returns current language (en, ru)
См. определение в файле main/lib/context.php строка 143
getRequest | ( | ) |
Returns request object of the context.
См. определение в файле main/lib/context.php строка 101
getResponse | ( | ) |
Returns response object of the context.
См. определение в файле main/lib/context.php строка 80
getServer | ( | ) |
Returns server object of the context.
См. определение в файле main/lib/context.php строка 111
getSite | ( | ) |
Initializes context by request and response objects.
Request | $request | |
Response | $response | |
Server | $server | |
Environment | $env |
См. определение в файле main/lib/context.php строка 60
setCulture | ( | Context\Culture | $culture | ) |
Sets culture of the context.
\Bitrix\Main\Context\Culture | $culture |
См. определение в файле main/lib/context.php строка 163
setLanguage | ( | $language | ) |
Sets language of the context.
string | $language |
См. определение в файле main/lib/context.php строка 173
setResponse | ( | Response | $response | ) |
setSite | ( | $site | ) |
Sets site of the context.
string | $site |
См. определение в файле main/lib/context.php строка 183
|
protected |
См. определение в файле main/lib/context.php строка 16
|
protected |
См. определение в файле main/lib/context.php строка 37
|
protected |
См. определение в файле main/lib/context.php строка 34
|
protected |
См. определение в файле main/lib/context.php строка 40
|
protected |
См. определение в файле main/lib/context.php строка 22
|
protected |
См. определение в файле main/lib/context.php строка 19
|
protected |
См. определение в файле main/lib/context.php строка 25