|
static | add (array $data) |
|
static | addExtended (array $data, array $additional=array()) |
|
static | checkFields (Entity\Result $result, $primary, array $data) |
|
static | update ($primary, array $data) |
|
static | updateExtended ($primary, array $data, array $additional=array()) |
|
static | delete ($primary) |
|
static | deleteExtended ($primary, array $additional=array()) |
|
static | getSubtreeRangeSqlForNode ($primary, $node=array()) |
|
static | checkIntegrity () |
|
static | checkNodeIsParentOfNodeById ($primary, $childPrimary, $behaviour=array('CHECK_DIRECT'=> false)) |
|
static | resort ($dontCareEvents=false) |
|
static | getPathToNode ($primary, $parameters, $behaviour=array('SHOW_LEAF'=> true)) |
|
static | getPathToNodeByCondition ($filter, $parameters=array(), $behaviour=array('SHOW_LEAF'=> true)) |
|
static | getPathToMultipleNodes ($nodeInfo=array(), $parameters=array(), $behaviour=array('SHOW_LEAF'=> true)) |
|
static | getDeepestCommonParent ($nodeInfo=array(), $parameters=array()) |
|
static | getChildren ($primary, $parameters=array()) |
|
static | getSubTree ($primary, $parameters=array()) |
|
static | getParentTree ($primary, $parameters=array(), $behaviour=array('SHOW_CHILDREN'=> true, 'START_FROM'=> false)) |
|
static | mergeRelationsFromTemporalTable ($temporalTabName, $additinalFlds=array(), $fldMap=array()) |
|
static | getCountByFilter ($filter=array()) |
|
|
static | rebalance ($node, $id) |
|
static | checkNodeIsParentOfNodeByCondition ($parentNodeFilter, $nodeFilter, $behaviour=array('CHECK_DIRECT'=> false)) |
|
static | moveSubtree ($primary, $primaryDst) |
| PROTECTED.
|
|
static | processInsertInstruction (&$data) |
|
static | manageFreeSpace ($right, $length=2, $op=self::SPACE_ADD, $exceptId=false) |
|
static | makeSortSpace ($primary, $direction, $primaryParent, $knownSort=false) |
|
static | walkTreeInDeep ($primary, $edges, &$nodes, $margin, $depth=0, $dontCareEvents=false) |
|
static | applyRestrictions (&$data) |
|
static | getNodeInfo ($primary) |
|
static | getMaxMargin () |
|
static | checkNodeThrowException ($node) |
|
static | checkNodeIsParentOfNodeByFilters ($parentNodeFilter, $nodeFilter, $behaviour=array('CHECK_DIRECT'=> false)) |
|
См. определение в файле tree.php строка 25
◆ add()
static add |
( |
array | $data | ) |
|
|
static |
◆ addExtended()
static addExtended |
( |
array | $data, |
|
|
array | $additional = array() ) |
|
static |
Available keys in $additional REBALANCE - if set to true, method will rebalance tree after insertion
Переопределяется в LocationTable.
См. определение в файле tree.php строка 46
◆ applyRestrictions()
static applyRestrictions |
( |
& | $data | ) |
|
|
staticprotected |
◆ checkFields()
static checkFields |
( |
Entity\Result | $result, |
|
|
| $primary, |
|
|
array | $data ) |
|
static |
◆ checkIntegrity()
static checkIntegrity |
( |
| ) |
|
|
static |
◆ checkNodeIsParentOfNodeByCondition()
static checkNodeIsParentOfNodeByCondition |
( |
| $parentNodeFilter, |
|
|
| $nodeFilter, |
|
|
| $behaviour = array('CHECK_DIRECT' => false) ) |
|
staticprotected |
◆ checkNodeIsParentOfNodeByFilters()
static checkNodeIsParentOfNodeByFilters |
( |
| $parentNodeFilter, |
|
|
| $nodeFilter, |
|
|
| $behaviour = array('CHECK_DIRECT' => false) ) |
|
staticprotected |
◆ checkNodeIsParentOfNodeById()
static checkNodeIsParentOfNodeById |
( |
| $primary, |
|
|
| $childPrimary, |
|
|
| $behaviour = array('CHECK_DIRECT' => false) ) |
|
static |
◆ checkNodeThrowException()
static checkNodeThrowException |
( |
| $node | ) |
|
|
staticprotected |
◆ delete()
static delete |
( |
| $primary | ) |
|
|
static |
◆ deleteExtended()
static deleteExtended |
( |
| $primary, |
|
|
array | $additional = array() ) |
|
static |
Available keys in $additional REBALANCE - if set to true, method will rebalance tree after insertion DELETE_SUBTREE - if set to true, only node will be deleted, and it`s subtree left unattached
- Аргументы
-
| $primary | |
array | $additional | |
- Возвращает
- Entity\DeleteResult
- Исключения
-
SystemException
- Исключения
-
NodeIncorrectException
- Исключения
-
NodeNotFoundException
- Исключения
-
Exception
Переопределяется в LocationTable.
См. определение в файле tree.php строка 187
◆ getChildren()
static getChildren |
( |
| $primary, |
|
|
| $parameters = array() ) |
|
static |
◆ getCountByFilter()
static getCountByFilter |
( |
| $filter = array() | ) |
|
|
static |
◆ getDeepestCommonParent()
static getDeepestCommonParent |
( |
| $nodeInfo = array(), |
|
|
| $parameters = array() ) |
|
static |
◆ getMaxMargin()
◆ getNodeInfo()
static getNodeInfo |
( |
| $primary | ) |
|
|
staticprotected |
◆ getParentTree()
static getParentTree |
( |
| $primary, |
|
|
| $parameters = array(), |
|
|
| $behaviour = array('SHOW_CHILDREN' => true, 'START_FROM' => false) ) |
|
static |
Fetches a chain of parents with their subtrees expanded
Available keys in $behaviour SHOW_CHILDREN : if set to true, do return direct ancestors of $primary in the result START_FROM
См. определение в файле tree.php строка 588
◆ getPathToMultipleNodes()
static getPathToMultipleNodes |
( |
| $nodeInfo = array(), |
|
|
| $parameters = array(), |
|
|
| $behaviour = array('SHOW_LEAF' => true) ) |
|
static |
◆ getPathToNode()
static getPathToNode |
( |
| $primary, |
|
|
| $parameters, |
|
|
| $behaviour = array('SHOW_LEAF' => true) ) |
|
static |
◆ getPathToNodeByCondition()
static getPathToNodeByCondition |
( |
| $filter, |
|
|
| $parameters = array(), |
|
|
| $behaviour = array('SHOW_LEAF' => true) ) |
|
static |
Fetches a parent chain of a specified node
Available keys in $behaviour SHOW_LEAF : if set to true, return node itself in the result
@access private
См. определение в файле tree.php строка 375
◆ getSubTree()
static getSubTree |
( |
| $primary, |
|
|
| $parameters = array() ) |
|
static |
Fetches a set of items which form sub-tree of a given node
См. определение в файле tree.php строка 562
◆ getSubtreeRangeSqlForNode()
static getSubtreeRangeSqlForNode |
( |
| $primary, |
|
|
| $node = array() ) |
|
static |
This method is for internal use only. It may be changed without any notification further, or even mystically disappear.
@access private
См. определение в файле tree.php строка 228
◆ makeSortSpace()
static makeSortSpace |
( |
| $primary, |
|
|
| $direction, |
|
|
| $primaryParent, |
|
|
| $knownSort = false ) |
|
staticfinalprotected |
◆ manageFreeSpace()
static manageFreeSpace |
( |
| $right, |
|
|
| $length = 2, |
|
|
| $op = self::SPACE_ADD, |
|
|
| $exceptId = false ) |
|
staticfinalprotected |
◆ mergeRelationsFromTemporalTable()
static mergeRelationsFromTemporalTable |
( |
| $temporalTabName, |
|
|
| $additinalFlds = array(), |
|
|
| $fldMap = array() ) |
|
static |
◆ moveSubtree()
static moveSubtree |
( |
| $primary, |
|
|
| $primaryDst ) |
|
staticfinalprotected |
PROTECTED.
Do not call directly, only inside update()
- Аргументы
-
int | $primary | Subtree`s root id to move |
int | $primaryDst | Item id to attach our subtree to |
См. определение в файле tree.php строка 658
◆ processInsertInstruction()
static processInsertInstruction |
( |
& | $data | ) |
|
|
staticfinalprotected |
◆ rebalance()
static rebalance |
( |
| $node, |
|
|
| $id ) |
|
staticprotected |
◆ resort()
static resort |
( |
| $dontCareEvents = false | ) |
|
|
static |
◆ update()
static update |
( |
| $primary, |
|
|
array | $data ) |
|
static |
◆ updateExtended()
static updateExtended |
( |
| $primary, |
|
|
array | $data, |
|
|
array | $additional = array() ) |
|
static |
Available keys in $additional REBALANCE - if set to true, method will rebalance tree after insertion
Переопределяется в LocationTable.
См. определение в файле tree.php строка 153
◆ walkTreeInDeep()
static walkTreeInDeep |
( |
| $primary, |
|
|
| $edges, |
|
|
& | $nodes, |
|
|
| $margin, |
|
|
| $depth = 0, |
|
|
| $dontCareEvents = false ) |
|
staticfinalprotected |
◆ BLOCK_INSERT_MTU
const BLOCK_INSERT_MTU = 9999 |
◆ SORT_FREE_AFTER
const SORT_FREE_AFTER = 2 |
◆ SORT_FREE_BEFORE
const SORT_FREE_BEFORE = 1 |
◆ SORT_HOLE_SIZE
const SORT_HOLE_SIZE = 10 |
◆ SORT_HOLE_SIZE_HALF
const SORT_HOLE_SIZE_HALF = 5 |
◆ SPACE_ADD
◆ SPACE_REMOVE