1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс PublicAction

Открытые статические члены

static getRawData ()
static ajaxProcessing ()
static restBase ()
static restGateway ($fields, $t, $server)
static restApplication ()
static restApplicationDelete ($app)
static beforeRestApplicationDelete (\Bitrix\Main\Event $event)
static getRestStat (bool $humanFormat=false, bool $onlyActive=true, array $additionalFilter=[])

Поля данных

const REST_SCOPE_DEFAULT = 'landing'
const REST_SCOPE_CLOUD = 'landing_cloud'
const REST_USAGE_TYPE_BLOCK = 'blocks'
const REST_USAGE_TYPE_PAGE = 'pages'

Защищенные статические члены

static getNamespacePublicClasses ()
static getMethodInfo ($action, $data=array())
static checkForExtranet ()
static actionProcessing ($action, $data, $isRest=false)

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

static $restApp = null
static $rawData = null

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

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

Методы

◆ actionProcessing()

actionProcessing ( $action,
$data,
$isRest = false )
staticprotected

Processing the AJAX/REST action.

Аргументы
string$actionAction name.
mixed$dataData.
boolean$isRestIs rest call.
Возвращает
array|null
Исключения

ReflectionException

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

◆ ajaxProcessing()

ajaxProcessing ( )
static

Listen commands from ajax.

Возвращает
array|null
Исключения

ReflectionException

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

◆ beforeRestApplicationDelete()

beforeRestApplicationDelete ( \Bitrix\Main\Event $event)
static

Before REST app delete.

Аргументы
\Bitrix\Main\Event$eventEvent data.
Возвращает
\Bitrix\Main\EventResult

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

◆ checkForExtranet()

checkForExtranet ( )
staticprotected

Returns true if current user out of the extranet. In extranet case allowed only GROUP scope.

Возвращает
bool

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

◆ getMethodInfo()

getMethodInfo ( $action,
$data = array() )
staticprotected

Get info about method - class/method/params.

Аргументы
string$actionFull name of action (\Namespace\Class::method).
array$dataArray of data.
Возвращает
array
Исключения

ReflectionException

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

◆ getNamespacePublicClasses()

getNamespacePublicClasses ( )
staticprotected

Get full namespace for public classes.

Возвращает
string

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

◆ getRawData()

getRawData ( )
static

Get raw data of curring processing.

Возвращает
mixed

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

◆ getRestStat()

getRestStat ( bool $humanFormat = false,
bool $onlyActive = true,
array $additionalFilter = [] )
static

Gets stat data of using rest app.

Аргументы
bool$humanFormatGets data in human format.
bool$onlyActiveGets data only in active states.
array$additionalFilterAdditional filter array.
Возвращает
array

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

◆ restApplication()

restApplication ( )
static

Get current REST application.

Возвращает
array

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

◆ restApplicationDelete()

restApplicationDelete ( $app)
static

On REST app delete.

Аргументы
array$appApp info.
Возвращает
void

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

◆ restBase()

restBase ( )
static

Register methods in REST.

Возвращает
array
Исключения

ReflectionException

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

◆ restGateway()

restGateway ( $fields,
$t,
$server )
static

Gateway between REST and publicaction.

Аргументы
array$fieldsRest fields.
mixed$tVar.
\CRestServer$serverServer instance.
Возвращает
mixed
Исключения

ReflectionException

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

Поля

◆ $rawData

$rawData = null
staticprotected

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

◆ $restApp

$restApp = null
staticprotected

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

◆ REST_SCOPE_CLOUD

const REST_SCOPE_CLOUD = 'landing_cloud'

Scope for REST (cloud repo commands).

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

◆ REST_SCOPE_DEFAULT

const REST_SCOPE_DEFAULT = 'landing'

Scope for REST (default commands).

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

◆ REST_USAGE_TYPE_BLOCK

const REST_USAGE_TYPE_BLOCK = 'blocks'

Code indicating used blocks in REST statistics.

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

◆ REST_USAGE_TYPE_PAGE

const REST_USAGE_TYPE_PAGE = 'pages'

Code indicating used pages in REST statistics.

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


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