Fragment extends Collection
FinalYes
Table of Contents
Methods
- addError() : mixed
- addNode() : mixed
- excludeSubTreeFragment() : mixed
- getChildrenCount() : mixed
- getData() : mixed
- getErrors() : mixed
- getIds() : mixed
- getNode() : mixed
- getNodeData() : mixed
- getSubTree() : mixed
- includeFragment() : mixed
- includeSubTreeFragment() : mixed
- isCorrect() : bool
- Returns true, if there are no cycles and insanely deep nodes, and other possible errors
- setParentFor() : mixed
- walkDepth() : mixed
- walkWidth() : mixed
Methods
addError()
public
addError(mixed $code, mixed $message[, mixed $type = \Bitrix\Tasks\Util\Error::TYPE_FATAL ][, mixed $data = null ]) : mixed
Parameters
- $code : mixed
- $message : mixed
- $type : mixed = \Bitrix\Tasks\Util\Error::TYPE_FATAL
- $data : mixed = null
addNode()
public
addNode(mixed $id, mixed $parentId[, mixed $data = array() ]) : mixed
Parameters
- $id : mixed
- $parentId : mixed
- $data : mixed = array()
excludeSubTreeFragment()
public
excludeSubTreeFragment(mixed $id[, array<string|int, mixed> $settings = array() ]) : mixed
Parameters
- $id : mixed
- $settings : array<string|int, mixed> = array()
getChildrenCount()
public
getChildrenCount(mixed $id) : mixed
Parameters
- $id : mixed
getData()
public
getData() : mixed
getErrors()
public
getErrors() : mixed
getIds()
public
getIds() : mixed
getNode()
public
getNode(mixed $id) : mixed
Parameters
- $id : mixed
getNodeData()
public
getNodeData(mixed $id) : mixed
Parameters
- $id : mixed
getSubTree()
public
getSubTree([mixed $point = 0 ]) : mixed
Parameters
- $point : mixed = 0
includeFragment()
public
includeFragment(static|array<string|int, mixed> $fragment) : mixed
Parameters
- $fragment : static|array<string|int, mixed>
includeSubTreeFragment()
public
includeSubTreeFragment(static|array<string|int, mixed> $fragment[, mixed $parentId = 0 ]) : mixed
Parameters
- $fragment : static|array<string|int, mixed>
- $parentId : mixed = 0
Tags
isCorrect()
Returns true, if there are no cycles and insanely deep nodes, and other possible errors
public
isCorrect() : bool
Return values
boolsetParentFor()
public
setParentFor(mixed $id, mixed $newParentId) : mixed
Parameters
- $id : mixed
- $newParentId : mixed
walkDepth()
public
walkDepth(mixed $cb) : mixed
Parameters
- $cb : mixed
walkWidth()
public
walkWidth(mixed $cb[, mixed $rootId = 0 ]) : mixed
Parameters
- $cb : mixed
- $rootId : mixed = 0