Bitrix API

Member extends Controller

FinalYes

Table of Contents

Constants

ERROR_REQUIRED_PARAMETER  = 'MAIN_CONTROLLER_22001'
ERROR_UNKNOWN_ACTION  = 'MAIN_CONTROLLER_22002'
EVENT_ON_AFTER_ACTION  = 'onAfterAction'
EVENT_ON_BEFORE_ACTION  = 'onBeforeAction'
EXCEPTION_UNKNOWN_ACTION  = 22002
SCOPE_AJAX  = 'ajax'
SCOPE_CLI  = 'cli'
SCOPE_REST  = 'rest'

Methods

__construct()  : mixed
Constructor Controller.
addAction()  : array<string|int, mixed>
addUserMemberAction()  : array<string|int, mixed>|null
className()  : string
Returns the fully qualified name of this class.
configureActions()  : array<string|int, mixed>
convertKeysToCamelCase()  : array<string|int, mixed>|mixed|string
Converts keys of array to camel case notation.
countAction()  : array<string|int, mixed>
deleteAction()  : array<string|int, mixed>
deleteUserAction()  : array<string|int, mixed>
finalizeResponse()  : void
Finalizes response.
findAction()  : mixed
forward()  : HttpResponse|mixed
generateActionMethodName()  : string
getActionUri()  : Uri
Returns uri for ajax end point for the action name. It's a helper, which uses relative action name without controller name.
getAutoWiredParameters()  : array<string|int, Parameter>
getConfigurationOfActions()  : array<string|int, mixed>|null
getCurrentUser()  : CurrentUser
getDefaultAutoWiredParameters()  : array<string|int, Parameter>
getErrorByCode()  : Error
Getting once error with the necessary code.
getErrors()  : array<string|int, Error>
Getting array of errors.
getFullEventName()  : string
getModuleId()  : string
Returns module id.
getPrimaryAutoWiredParameter()  : Parameter|null
getRequest()  : HttpRequest
getScope()  : string
getSourceParametersList()  : array<string|int, mixed>
getUnsignedParameters()  : mixed
getUserMemberAction()  : array<string|int, mixed>
isLocatedUnderPsr4()  : bool
listNameActions()  : array<string|int, mixed>
Returns list of all
moveAction()  : array<string|int, mixed>
moveUserAction()  : array<string|int, mixed>
moveUserListToDepartmentAction()  : array<string|int, mixed>
redirectTo()  : Redirect
Redirect to URL.
run()  : HttpResponse|mixed
saveUserListAction()  : array<string|int, mixed>
setCurrentUser()  : void
setScope()  : Controller
setSourceParametersList()  : Controller

Constants

ERROR_REQUIRED_PARAMETER

public mixed ERROR_REQUIRED_PARAMETER = 'MAIN_CONTROLLER_22001'

ERROR_UNKNOWN_ACTION

public mixed ERROR_UNKNOWN_ACTION = 'MAIN_CONTROLLER_22002'

EVENT_ON_AFTER_ACTION

public mixed EVENT_ON_AFTER_ACTION = 'onAfterAction'

EVENT_ON_BEFORE_ACTION

public mixed EVENT_ON_BEFORE_ACTION = 'onBeforeAction'

EXCEPTION_UNKNOWN_ACTION

public mixed EXCEPTION_UNKNOWN_ACTION = 22002

Methods

__construct()

Constructor Controller.

public __construct([Request $request = null ]) : mixed
Parameters
$request : Request = null

addAction()

public addAction(NodeMember $nodeMember, Node $node) : array<string|int, mixed>
Parameters
$nodeMember : NodeMember
$node : Node
Tags
throws
ArgumentException
throws
SqlQueryException
throws
SystemException
throws
CreationFailedException
Attributes
#[LogicOr]
new Attribute\StructureActionAccess(permission: StructureActionDictionary::ACTION_DEPARTMENT_CREATE, itemType: AccessibleItemType::NODE, itemIdRequestKey: 'nodeId')
new Attribute\StructureActionAccess(permission: StructureActionDictionary::ACTION_EMPLOYEE_ADD_TO_DEPARTMENT, itemType: AccessibleItemType::NODE, itemIdRequestKey: 'nodeId')
Return values
array<string|int, mixed>

addUserMemberAction()

public addUserMemberAction(Node $node, array<string|int, mixed> $userIds, Role $role) : array<string|int, mixed>|null
Parameters
$node : Node
$userIds : array<string|int, mixed>
$role : Role
Attributes
#[StructureActionAccess]
$permission: StructureActionDictionary::ACTION_EMPLOYEE_ADD_TO_DEPARTMENT
$itemType: AccessibleItemType::NODE
$itemIdRequestKey: 'nodeId'
Return values
array<string|int, mixed>|null

className()

Returns the fully qualified name of this class.

public final static className() : string
Return values
string

configureActions()

public configureActions() : array<string|int, mixed>
Return values
array<string|int, mixed>

convertKeysToCamelCase()

Converts keys of array to camel case notation.

public convertKeysToCamelCase(mixed $data) : array<string|int, mixed>|mixed|string
Parameters
$data : mixed

Data.

Tags
see
Converter::OUTPUT_JSON_FORMAT
Return values
array<string|int, mixed>|mixed|string

countAction()

public countAction(Structure $structure) : array<string|int, mixed>
Parameters
$structure : Structure
Attributes
#[StructureActionAccess]
StructureActionDictionary::ACTION_STRUCTURE_VIEW
Return values
array<string|int, mixed>

deleteAction()

public deleteAction(NodeMember $member) : array<string|int, mixed>
Parameters
$member : NodeMember
Attributes
#[StructureActionAccess]
$permission: StructureActionDictionary::ACTION_EMPLOYEE_REMOVE_FROM_DEPARTMENT
$itemType: AccessibleItemType::NODE_MEMBER
$itemIdRequestKey: 'nodeMemberId'
Return values
array<string|int, mixed>

deleteUserAction()

public deleteUserAction(NodeMember $nodeUserMember) : array<string|int, mixed>
Parameters
$nodeUserMember : NodeMember
Attributes
#[StructureActionAccess]
$permission: StructureActionDictionary::ACTION_EMPLOYEE_REMOVE_FROM_DEPARTMENT
$itemType: AccessibleItemType::NODE
$itemIdRequestKey: 'nodeId'
Return values
array<string|int, mixed>

finalizeResponse()

Finalizes response.

public finalizeResponse(Response $response) : void

The method will be invoked when HttpApplication will be ready to send response to client. It's a final place where Controller can interact with response.

Parameters
$response : Response

findAction()

public findAction(Node $node, string $query) : mixed
Parameters
$node : Node
$query : string

forward()

public forward(Controller|string $controller, string $actionName[, array<string|int, mixed>|null $parameters = null ]) : HttpResponse|mixed
Parameters
$controller : Controller|string
$actionName : string
$parameters : array<string|int, mixed>|null = null
Tags
throws
SystemException
Return values
HttpResponse|mixed

generateActionMethodName()

public final generateActionMethodName(mixed $action) : string
Parameters
$action : mixed
Return values
string

getActionUri()

Returns uri for ajax end point for the action name. It's a helper, which uses relative action name without controller name.

public final getActionUri(string $actionName[, array<string|int, mixed> $params = [] ][, bool $absolute = false ]) : Uri
Parameters
$actionName : string

Action name. It's a relative action name without controller name.

$params : array<string|int, mixed> = []

Parameters for creating uri.

$absolute : bool = false
Return values
Uri

getConfigurationOfActions()

public final getConfigurationOfActions() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null

getDefaultAutoWiredParameters()

public final getDefaultAutoWiredParameters() : array<string|int, Parameter>
Return values
array<string|int, Parameter>

getErrorByCode()

Getting once error with the necessary code.

public final getErrorByCode(string $code) : Error
Parameters
$code : string

Code of error.

Return values
Error

getErrors()

Getting array of errors.

public final getErrors() : array<string|int, Error>
Return values
array<string|int, Error>

getFullEventName()

public final static getFullEventName(mixed $eventName) : string
Parameters
$eventName : mixed
Return values
string

getModuleId()

Returns module id.

public final getModuleId() : string

Tries to guess module id by file path and function @see getModuleId().

Return values
string

getRequest()

public final getRequest() : HttpRequest
Return values
HttpRequest

getScope()

public final getScope() : string
Return values
string

getSourceParametersList()

public final getSourceParametersList() : array<string|int, mixed>
Return values
array<string|int, mixed>

getUnsignedParameters()

public final getUnsignedParameters() : mixed

getUserMemberAction()

public getUserMemberAction(User $user, Node $node) : array<string|int, mixed>
Parameters
$user : User
$node : Node
Attributes
#[StructureActionAccess]
$permission: StructureActionDictionary::ACTION_STRUCTURE_VIEW
$itemType: AccessibleItemType::NODE
$itemIdRequestKey: 'nodeId'
Return values
array<string|int, mixed>

isLocatedUnderPsr4()

public final isLocatedUnderPsr4() : bool
Return values
bool

listNameActions()

Returns list of all

public final listNameActions() : array<string|int, mixed>
Return values
array<string|int, mixed>

moveAction()

public moveAction(NodeMember $nodeMember, Node $node) : array<string|int, mixed>
Parameters
$nodeMember : NodeMember
$node : Node
Attributes
#[LogicOr]
new Attribute\StructureActionAccess(permission: StructureActionDictionary::ACTION_DEPARTMENT_CREATE, itemType: AccessibleItemType::NODE, itemIdRequestKey: 'nodeId')
new Attribute\StructureActionAccess(permission: StructureActionDictionary::ACTION_EMPLOYEE_ADD_TO_DEPARTMENT, itemType: AccessibleItemType::NODE, itemIdRequestKey: 'nodeId')
new Attribute\StructureActionAccess(permission: StructureActionDictionary::ACTION_EMPLOYEE_REMOVE_FROM_DEPARTMENT, itemType: AccessibleItemType::NODE, itemIdRequestKey: 'nodeId')
Return values
array<string|int, mixed>

moveUserAction()

public moveUserAction(NodeMember $nodeUserMember, Node $targetNode) : array<string|int, mixed>
Parameters
$nodeUserMember : NodeMember
$targetNode : Node
Attributes
#[StructureActionAccess]
$permission: StructureActionDictionary::ACTION_EMPLOYEE_ADD_TO_DEPARTMENT
$itemType: AccessibleItemType::NODE
$itemIdRequestKey: 'targetNodeId'
#[StructureActionAccess]
$permission: StructureActionDictionary::ACTION_EMPLOYEE_REMOVE_FROM_DEPARTMENT
$itemType: AccessibleItemType::NODE
$itemIdRequestKey: 'nodeId'
Return values
array<string|int, mixed>

moveUserListToDepartmentAction()

public moveUserListToDepartmentAction(Node $node[, array<string|int, mixed> $userIds = [] ]) : array<string|int, mixed>
Parameters
$node : Node
$userIds : array<string|int, mixed> = []
Attributes
#[LogicOr]
new Attribute\StructureActionAccess(permission: StructureActionDictionary::ACTION_DEPARTMENT_CREATE, itemType: AccessibleItemType::NODE, itemParentIdRequestKey: 'parentId')
new Attribute\StructureActionAccess(permission: StructureActionDictionary::ACTION_EMPLOYEE_ADD_TO_DEPARTMENT, itemType: AccessibleItemType::NODE, itemIdRequestKey: 'nodeId')
Return values
array<string|int, mixed>

run()

public final run(mixed $actionName, array<string|int, mixed> $sourceParametersList) : HttpResponse|mixed
Parameters
$actionName : mixed
$sourceParametersList : array<string|int, mixed>
Tags
throws
SystemException
Return values
HttpResponse|mixed

saveUserListAction()

public saveUserListAction(Node $node[, array{MEMBER_HEAD?: list, MEMBER_EMPLOYEE?: list, MEMBER_DEPUTY_HEAD?: list$userIds = [] ]) : array<string|int, mixed>
Parameters
$node : Node
$userIds : array{MEMBER_HEAD?: list, MEMBER_EMPLOYEE?: list, MEMBER_DEPUTY_HEAD?: list} = []
Tags
throws
ArgumentException
throws
DuplicateEntryException
throws
ObjectPropertyException
throws
SqlQueryException
throws
SystemException
Attributes
#[LogicOr]
new Attribute\StructureActionAccess(permission: StructureActionDictionary::ACTION_DEPARTMENT_CREATE, itemType: AccessibleItemType::NODE, itemParentIdRequestKey: 'parentId')
new Attribute\StructureActionAccess(permission: StructureActionDictionary::ACTION_EMPLOYEE_ADD_TO_DEPARTMENT, itemType: AccessibleItemType::NODE, itemIdRequestKey: 'nodeId')
Return values
array<string|int, mixed>

setSourceParametersList()

public final setSourceParametersList(array<string|int, mixed> $sourceParametersList) : Controller
Parameters
$sourceParametersList : array<string|int, mixed>
Return values
Controller

        
On this page

Search results