1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс Application
Граф наследования:Application:
HttpApplication Application DesktopApplication

Открытые члены

 initializeBasicKernel ()
 initializeExtendedKernel (array $params)
 getRouter ()
 setRouter (Router $router)
 getCurrentRoute ()
 hasCurrentRoute ()
 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 (string $filename=null)

Поля данных

const JOB_PRIORITY_NORMAL = 100
const JOB_PRIORITY_LOW = 50

Защищенные члены

 __construct ()
 initializeRouter ()
 initializeContext (array $params)
 handleResponseBeforeSend (Response $response)
 initializeExceptionHandler ()
 createDatabaseConnection ()
 initializeCache ()
 initializeMessengerWorker ()
 runBackgroundJobs ()

Защищенные данные

bool $initialized = false
bool $terminating = false
 $context
 $router
 $currentRoute
 $connectionPool
 $managedCache
 $taggedCache
 $session
 $kernelSession
 $compositeSessionManager
 $sessionLocalStorageManager
 $backgroundJobs
 $license

Статические защищенные данные

static $instance

Подробное описание

Base class for any application.

См. определение в файле application.php строка 29

Конструктор(ы)

◆ __construct()

__construct ( )
protected

Creates new application instance.

См. определение в файле application.php строка 83

Методы

◆ addBackgroundJob()

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
Возвращает
$this

См. определение в файле application.php строка 818

◆ createDatabaseConnection()

createDatabaseConnection ( )
protected

Creates database connection pool.

См. определение в файле application.php строка 527

◆ createExceptionHandlerLog()

createExceptionHandlerLog ( )

См. определение в файле application.php строка 470

◆ createExceptionHandlerOutput()

createExceptionHandlerOutput ( )

Переопределяется в HttpApplication.

См. определение в файле application.php строка 519

◆ end()

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
Возвращает
void

См. определение в файле application.php строка 305

◆ getCache()

getCache ( )

Returns new instance of the Cache object.

Возвращает
Data\Cache

См. определение в файле application.php строка 649

◆ getCompositeSessionManager()

getCompositeSessionManager ( )
final

См. определение в файле application.php строка 704

◆ getConnection()

getConnection ( $name = "")
static

Static method returns database connection for the specified name. If name is empty - default connection is returned.

Аргументы
string$nameName of database connection. If empty - default connection.
Возвращает
Data\Connection|DB\Connection

См. определение в файле application.php строка 638

◆ getConnectionPool()

getConnectionPool ( )

Returns database connections pool object.

Возвращает
Data\ConnectionPool

См. определение в файле application.php строка 595

◆ getContext()

getContext ( )

Returns context of the current request.

Возвращает
Context | HttpContext

См. определение в файле application.php строка 605

◆ getCurrentRoute()

getCurrentRoute ( )
Возвращает
Route

См. определение в файле application.php строка 201

◆ getDocumentRoot()

getDocumentRoot ( )
static

Returns server document root.

Возвращает
null|string

См. определение в файле application.php строка 736

◆ getExceptionHandler()

getExceptionHandler ( )
Возвращает
\Bitrix\Main\Diag\ExceptionHandler

См. определение в файле application.php строка 585

◆ getInstance()

getInstance ( )
static

Returns current instance of the Application.

Возвращает
Application | HttpApplication

См. определение в файле application.php строка 98

◆ getKernelSession()

getKernelSession ( )
final

См. определение в файле application.php строка 694

◆ getLicense()

getLicense ( )

См. определение в файле application.php строка 620

◆ getLocalSession()

getLocalSession ( $name)
final

См. определение в файле application.php строка 689

◆ getManagedCache()

getManagedCache ( )

Returns manager of the managed cache.

Возвращает
Data\ManagedCache

См. определение в файле application.php строка 659

◆ getPersonalRoot()

getPersonalRoot ( )
static

Returns personal root directory (relative to document root)

Возвращает
null|string

См. определение в файле application.php строка 762

◆ getRouter()

getRouter ( )
Возвращает
Router

См. определение в файле application.php строка 180

◆ getSession()

getSession ( )
final

См. определение в файле application.php строка 699

◆ getSessionLocalStorageManager()

getSessionLocalStorageManager ( )
final

См. определение в файле application.php строка 684

◆ getTaggedCache()

getTaggedCache ( )

Returns manager of the managed cache.

Возвращает
Data\TaggedCache

См. определение в файле application.php строка 674

◆ getUserTypeManager()

getUserTypeManager ( )
static

Returns UF manager.

Возвращает
\CUserTypeManager

См. определение в файле application.php строка 714

◆ handleResponseBeforeSend()

handleResponseBeforeSend ( Response $response)
protected

См. определение в файле application.php строка 335

◆ hasCurrentRoute()

hasCurrentRoute ( )

См. определение в файле application.php строка 206

◆ hasInstance()

hasInstance ( )
static
Возвращает
bool

См. определение в файле application.php строка 110

◆ initializeBasicKernel()

initializeBasicKernel ( )

См. определение в файле application.php строка 119

◆ initializeCache()

initializeCache ( )
protected

См. определение в файле application.php строка 532

◆ initializeContext()

initializeContext ( array $params)
abstractprotected

Initializes context of the current request. Should be implemented in subclass.

Аргументы
array$params

Переопределяется в HttpApplication.

◆ initializeExceptionHandler()

initializeExceptionHandler ( )
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_NOTICE, // catchable error types, printed to log 'exception_errors_types' => E_ALL & ~E_NOTICE, // 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 строка 416

◆ initializeExtendedKernel()

initializeExtendedKernel ( array $params)

Does full kernel initialization. Should be called somewhere after initializeBasicKernel().

Аргументы
array$paramsParameters of the current request (depends on application type)

См. определение в файле application.php строка 128

◆ initializeMessengerWorker()

initializeMessengerWorker ( )
protected

См. определение в файле application.php строка 558

◆ initializeRouter()

initializeRouter ( )
protected

См. определение в файле application.php строка 219

◆ isInitialized()

isInitialized ( )

Returns true if the application is fully initialized.

Возвращает
bool

См. определение в файле application.php строка 865

◆ isUtfMode()

isUtfMode ( )
static

Returns true if server is in UTF-8 mode. False - otherwise.

Возвращает
true

См. определение в файле application.php строка 726

◆ resetAccelerator()

resetAccelerator ( string $filename = null)
static

Resets accelerator if any.

См. определение в файле application.php строка 786

◆ run()

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.

Возвращает
void

См. определение в файле application.php строка 291

◆ runBackgroundJobs()

runBackgroundJobs ( )
protected

См. определение в файле application.php строка 825

◆ setContext()

setContext ( Context $context)

Modifies context of the current request.

Аргументы
Context$context

См. определение в файле application.php строка 615

◆ setCurrentRoute()

setCurrentRoute ( Route $currentRoute)
Аргументы
Route$currentRoute

См. определение в файле application.php строка 214

◆ setRouter()

setRouter ( Router $router)
Аргументы
Router$router

См. определение в файле application.php строка 193

◆ start()

start ( )
abstract

Starts request execution. Should be called after initialize. Should be implemented in subclass.

Переопределяется в HttpApplication.

◆ terminate()

terminate ( $status = 0)

Terminates application by invoking exit(). It's the right way to finish application.

Аргументы
int$status
Возвращает
void

См. определение в файле application.php строка 360

Поля

◆ $backgroundJobs

$backgroundJobs
protected

См. определение в файле application.php строка 76

◆ $compositeSessionManager

$compositeSessionManager
protected

См. определение в файле application.php строка 70

◆ $connectionPool

$connectionPool
protected

См. определение в файле application.php строка 54

◆ $context

$context
protected

См. определение в файле application.php строка 45

◆ $currentRoute

$currentRoute
protected

См. определение в файле application.php строка 49

◆ $initialized

bool $initialized = false
protected

См. определение в файле application.php строка 38

◆ $instance

$instance
staticprotected

См. определение в файле application.php строка 37

◆ $kernelSession

$kernelSession
protected

См. определение в файле application.php строка 68

◆ $license

$license
protected

См. определение в файле application.php строка 78

◆ $managedCache

$managedCache
protected

См. определение в файле application.php строка 59

◆ $router

$router
protected

См. определение в файле application.php строка 47

◆ $session

$session
protected

См. определение в файле application.php строка 66

◆ $sessionLocalStorageManager

$sessionLocalStorageManager
protected

См. определение в файле application.php строка 72

◆ $taggedCache

$taggedCache
protected

См. определение в файле application.php строка 64

◆ $terminating

bool $terminating = false
protected

См. определение в файле application.php строка 39

◆ JOB_PRIORITY_LOW

const JOB_PRIORITY_LOW = 50

См. определение в файле application.php строка 32

◆ JOB_PRIORITY_NORMAL

const JOB_PRIORITY_NORMAL = 100

См. определение в файле application.php строка 31


Объявления и описания членов класса находятся в файле: