Открытые члены | |
initializeBasicKernel () | |
initializeExtendedKernel (array $params) | |
getRouter () | |
setRouter (Router $router) | |
getCurrentRoute () | |
setCurrentRoute (Route $currentRoute) | |
start () | |
run () | |
end ($status=0, Response $response=null) | |
terminate ($status=0) | |
createExceptionHandlerLog () | |
createExceptionHandlerOutput () | |
getExceptionHandler () | |
getConnectionPool () | |
getContext () | |
setContext (Context $context) | |
getLicense () | |
getCache () | |
getManagedCache () | |
getTaggedCache () | |
getSessionLocalStorageManager () | |
getLocalSession ($name) | |
getKernelSession () | |
getSession () | |
getCompositeSessionManager () | |
addBackgroundJob (callable $job, array $args=[], $priority=self::JOB_PRIORITY_NORMAL) | |
isInitialized () | |
Открытые статические члены | |
static | getInstance () |
static | hasInstance () |
static | getConnection ($name="") |
static | getUserTypeManager () |
static | isUtfMode () |
static | getDocumentRoot () |
static | getPersonalRoot () |
static | resetAccelerator () |
Открытые атрибуты | |
const | JOB_PRIORITY_NORMAL = 100 |
const | JOB_PRIORITY_LOW = 50 |
Защищенные члены | |
__construct () | |
initializeContext (array $params) | |
handleResponseBeforeSend (Response $response) | |
initializeExceptionHandler () | |
createDatabaseConnection () | |
initializeCache () | |
runBackgroundJobs () | |
Статические защищенные данные | |
static | $instance |
Base class for any application.
См. определение в файле application.php строка 24
|
protected |
Creates new application instance.
См. определение в файле application.php строка 87
addBackgroundJob | ( | callable | $job, |
array | $args = [] , |
||
$priority = self::JOB_PRIORITY_NORMAL |
|||
) |
Adds a job to do after the response was sent.
callable | $job | |
array | $args | |
int | $priority |
См. определение в файле application.php строка 688
|
protected |
Creates database connection pool.
См. определение в файле application.php строка 437
createExceptionHandlerLog | ( | ) |
См. определение в файле application.php строка 380
createExceptionHandlerOutput | ( | ) |
Переопределяется в HttpApplication.
См. определение в файле application.php строка 429
end | ( | $status = 0 , |
|
Response | $response = null |
||
) |
Ends work of application. Sends response and then terminates execution. If there is no $response the method will use Context::$response.
int | $status | |
Response | null | $response |
См. определение в файле application.php строка 245
getCache | ( | ) |
Returns new instance of the Cache object.
См. определение в файле application.php строка 531
|
final |
См. определение в файле application.php строка 586
|
static |
Static method returns database connection for the specified name. If name is empty - default connection is returned.
string | $name | Name of database connection. If empty - default connection. |
См. определение в файле application.php строка 520
getConnectionPool | ( | ) |
Returns database connections pool object.
См. определение в файле application.php строка 477
getContext | ( | ) |
Returns context of the current request.
См. определение в файле application.php строка 487
getCurrentRoute | ( | ) |
См. определение в файле application.php строка 199
|
static |
Returns server document root.
См. определение в файле application.php строка 624
getExceptionHandler | ( | ) |
См. определение в файле application.php строка 467
|
static |
Returns current instance of the Application.
См. определение в файле application.php строка 101
|
final |
См. определение в файле application.php строка 576
getLicense | ( | ) |
См. определение в файле application.php строка 502
|
final |
См. определение в файле application.php строка 571
getManagedCache | ( | ) |
Returns manager of the managed cache.
См. определение в файле application.php строка 541
|
static |
Returns personal root directory (relative to document root)
См. определение в файле application.php строка 646
getRouter | ( | ) |
См. определение в файле application.php строка 183
|
final |
См. определение в файле application.php строка 581
|
final |
См. определение в файле application.php строка 566
getTaggedCache | ( | ) |
Returns manager of the managed cache.
См. определение в файле application.php строка 556
|
static |
|
protected |
См. определение в файле application.php строка 274
|
static |
См. определение в файле application.php строка 113
initializeBasicKernel | ( | ) |
См. определение в файле application.php строка 122
|
protected |
См. определение в файле application.php строка 442
|
abstractprotected |
Initializes context of the current request. Should be implemented in subclass.
array | $params |
Переопределяется в HttpApplication.
|
protected |
Exception handler can be initialized through the Config\Configuration (.settings.php file).
'exception_handling' => array( 'value' => array( 'debug' => true, // output exception on screen 'handled_errors_types' => E_ALL & ~E_STRICT & ~E_NOTICE, // catchable error types, printed to log 'exception_errors_types' => E_ALL & ~E_NOTICE & ~E_STRICT, // error types from catchable which throws exceptions 'ignore_silence' => false, // ignore @ 'assertion_throws_exception' => true, // assertion throws exception 'assertion_error_type' => 256, 'log' => array( 'class_name' => 'MyLog', // custom log class, must extend ExceptionHandlerLog; can be omited, in this case default Diag\FileExceptionHandlerLog will be used 'extension' => 'MyLogExt', // php extension, is used only with 'class_name' 'required_file' => 'modules/mylog.module/mylog.php' // included file, is used only with 'class_name' 'settings' => array( // any settings for 'class_name' 'file' => 'bitrix/modules/error.log', 'log_size' => 1000000, ), ), ), 'readonly' => false, ),
См. определение в файле application.php строка 340
initializeExtendedKernel | ( | array | $params | ) |
Does full kernel initialization. Should be called somewhere after initializeBasicKernel().
array | $params | Parameters of the current request (depends on application type) |
См. определение в файле application.php строка 131
isInitialized | ( | ) |
Returns true if the application is fully initialized.
См. определение в файле application.php строка 735
|
static |
Returns true id server is in utf-8 mode. False - otherwise.
См. определение в файле application.php строка 607
|
static |
Resets accelerator if any.
См. определение в файле application.php строка 666
run | ( | ) |
Runs controller and its action and sends response to the output.
It's a stub method, and we can't mark it as abstract because there is compatibility.
См. определение в файле application.php строка 231
|
protected |
См. определение в файле application.php строка 695
setContext | ( | Context | $context | ) |
Modifies context of the current request.
Context | $context |
См. определение в файле application.php строка 497
setCurrentRoute | ( | Route | $currentRoute | ) |
Route | $currentRoute |
См. определение в файле application.php строка 207
setRouter | ( | Router | $router | ) |
Router | $router |
См. определение в файле application.php строка 191
|
abstract |
Starts request execution. Should be called after initialize. Should be implemented in subclass.
Переопределяется в HttpApplication.
terminate | ( | $status = 0 | ) |
Terminates application by invoking exit(). It's the right way to finish application.
int | $status |
См. определение в файле application.php строка 292
|
protected |
См. определение в файле application.php строка 79
|
protected |
См. определение в файле application.php строка 72
|
protected |
См. определение в файле application.php строка 53
|
protected |
См. определение в файле application.php строка 41
|
protected |
См. определение в файле application.php строка 47
|
protected |
См. определение в файле application.php строка 34
|
staticprotected |
См. определение в файле application.php строка 32
|
protected |
См. определение в файле application.php строка 70
|
protected |
См. определение в файле application.php строка 82
|
protected |
См. определение в файле application.php строка 59
|
protected |
См. определение в файле application.php строка 44
|
protected |
См. определение в файле application.php строка 68
|
protected |
См. определение в файле application.php строка 74
|
protected |
См. определение в файле application.php строка 65
const JOB_PRIORITY_LOW = 50 |
См. определение в файле application.php строка 27
const JOB_PRIORITY_NORMAL = 100 |
См. определение в файле application.php строка 26