Bitrix API

Dod extends DoD

Table of Contents

Constants

ERROR_ACCESS_DENIED  = 'TASKS_SDC_02'
ERROR_COULD_NOT_GET_DATA  = 'TASKS_SDC_04'
ERROR_COULD_NOT_IS_EMPTY  = 'TASKS_SDC_06'
ERROR_COULD_NOT_LOAD_MODULE  = 'TASKS_SDC_01'
ERROR_COULD_NOT_SAVE_ITEM_LIST  = 'TASKS_SDC_05'
ERROR_COULD_NOT_SAVE_SETTINGS  = 'TASKS_SDC_03'
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.
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.
finalizeResponse()  : void
Finalizes response.
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>
getChecklistAction()  : Component
Returns the component displaying the dod list.
getConfigurationOfActions()  : array<string|int, mixed>|null
getCurrentUser()  : CurrentUser
getDefaultAutoWiredParameters()  : array<string|int, Parameter>
getDodInfoAction()  : array<string|int, mixed>
Returns a data that the application might need.
getDodTreeAction()  : array<string|int, mixed>|null
getErrorByCode()  : Error
Getting once error with the necessary code.
getErrors()  : array<string|int, Error>
Getting array of errors.
getFullEventName()  : string
getListAction()  : Component|null
Returns the component displaying the dod list for task.
getModuleId()  : string
Returns module id.
getPrimaryAutoWiredParameter()  : Parameter|null
getRequest()  : HttpRequest
getScope()  : string
getSettingsAction()  : array<string|int, mixed>
getSourceParametersList()  : array<string|int, mixed>
getUnsignedParameters()  : mixed
isLocatedUnderPsr4()  : bool
isNecessaryAction()  : bool
The method checks whether dod should be shown for the task.
listNameActions()  : array<string|int, mixed>
Returns list of all
redirectTo()  : Redirect
Redirect to URL.
run()  : HttpResponse|mixed
saveListAction()  : string|null
Saves a dod list for a specific task.
saveSettingsAction()  : string|null
Saves the dod list settings.
setCurrentUser()  : void
setScope()  : Controller
setSourceParametersList()  : Controller

Constants

ERROR_ACCESS_DENIED

public mixed ERROR_ACCESS_DENIED = 'TASKS_SDC_02'

ERROR_COULD_NOT_GET_DATA

public mixed ERROR_COULD_NOT_GET_DATA = 'TASKS_SDC_04'

ERROR_COULD_NOT_IS_EMPTY

public mixed ERROR_COULD_NOT_IS_EMPTY = 'TASKS_SDC_06'

ERROR_COULD_NOT_LOAD_MODULE

public mixed ERROR_COULD_NOT_LOAD_MODULE = 'TASKS_SDC_01'

ERROR_COULD_NOT_SAVE_ITEM_LIST

public mixed ERROR_COULD_NOT_SAVE_ITEM_LIST = 'TASKS_SDC_05'

ERROR_COULD_NOT_SAVE_SETTINGS

public mixed ERROR_COULD_NOT_SAVE_SETTINGS = 'TASKS_SDC_03'

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|null $request = null ]) : mixed
Parameters
$request : Request|null = 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

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

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

getChecklistAction()

Returns the component displaying the dod list.

public getChecklistAction(int $typeId) : Component
Parameters
$typeId : int

Type id.

Return values
Component

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>

getDodInfoAction()

Returns a data that the application might need.

public getDodInfoAction(int $groupId) : array<string|int, mixed>
Parameters
$groupId : int

Group id.

Return values
array<string|int, mixed>

getDodTreeAction()

public getDodTreeAction(int $groupId, int $taskId, int $typeId) : array<string|int, mixed>|null
Parameters
$groupId : int
$taskId : int
$typeId : int
Return values
array<string|int, mixed>|null

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

getListAction()

Returns the component displaying the dod list for task.

public getListAction(int $groupId, int $taskId, int $typeId) : Component|null
Parameters
$groupId : int

Group id.

$taskId : int

Task id.

$typeId : int

Type id.

Return values
Component|null

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

getSettingsAction()

public getSettingsAction(int $groupId[, int $taskId = 0 ][, string $saveRequest = 'Y' ]) : array<string|int, mixed>
Parameters
$groupId : int

Group id.

$taskId : int = 0

Task id.

$saveRequest : string = 'Y'

If the request comes from a place where the list may in advance saved.

Return values
array<string|int, mixed>

getSourceParametersList()

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

getUnsignedParameters()

public final getUnsignedParameters() : mixed

isLocatedUnderPsr4()

public final isLocatedUnderPsr4() : bool
Return values
bool

isNecessaryAction()

The method checks whether dod should be shown for the task.

public isNecessaryAction(int $groupId, int $taskId) : bool
Parameters
$groupId : int

Group id.

$taskId : int

Task id.

Return values
bool

listNameActions()

Returns list of all

public final listNameActions() : array<string|int, mixed>
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

saveListAction()

Saves a dod list for a specific task.

public saveListAction(int $taskId, int $typeId[, array<string|int, mixed> $items = [] ]) : string|null
Parameters
$taskId : int

Task id.

$typeId : int

Type id.

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

An array with a list of items that forms the dod list component.

Return values
string|null

saveSettingsAction()

Saves the dod list settings.

public saveSettingsAction(int $typeId, string $requiredOption[, array<string|int, mixed> $items = [] ][, array<string|int, mixed> $participants = [] ]) : string|null
Parameters
$typeId : int

Type id.

$requiredOption : string

Y|N Is the dod list required.

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

An array with a list of items that forms the dod list component.

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

An array with a list of participants to whom you will show the form.

Return values
string|null

setSourceParametersList()

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

        
On this page

Search results