1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс Tree
Граф наследования:Tree:
LocationTable

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

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())

Поля данных

const SORT_FREE_BEFORE = 1
const SORT_FREE_AFTER = 2
const SORT_HOLE_SIZE = 10
const SORT_HOLE_SIZE_HALF = 5
const BLOCK_INSERT_MTU = 9999
const SPACE_ADD = 1
const SPACE_REMOVE = 2

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

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()

add ( array $data)
static

Переопределяется в LocationTable.

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

◆ addExtended()

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()

applyRestrictions ( & $data)
staticprotected

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

◆ checkFields()

checkFields ( Entity\Result $result,
$primary,
array $data )
static

Переопределяется в LocationTable.

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

◆ checkIntegrity()

checkIntegrity ( )
static

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

◆ checkNodeIsParentOfNodeByCondition()

checkNodeIsParentOfNodeByCondition ( $parentNodeFilter,
$nodeFilter,
$behaviour = array('CHECK_DIRECT' => false) )
staticprotected

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

◆ checkNodeIsParentOfNodeByFilters()

checkNodeIsParentOfNodeByFilters ( $parentNodeFilter,
$nodeFilter,
$behaviour = array('CHECK_DIRECT' => false) )
staticprotected

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

◆ checkNodeIsParentOfNodeById()

checkNodeIsParentOfNodeById ( $primary,
$childPrimary,
$behaviour = array('CHECK_DIRECT' => false) )
static

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

◆ checkNodeThrowException()

checkNodeThrowException ( $node)
staticprotected

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

◆ delete()

delete ( $primary)
static

Переопределяется в LocationTable.

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

◆ deleteExtended()

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
Исключения
Main

SystemException

Исключения
Tree

NodeIncorrectException

Исключения
Tree

NodeNotFoundException

Исключения

Exception

Переопределяется в LocationTable.

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

◆ getChildren()

getChildren ( $primary,
$parameters = array() )
static

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

◆ getCountByFilter()

getCountByFilter ( $filter = array())
static

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

◆ getDeepestCommonParent()

getDeepestCommonParent ( $nodeInfo = array(),
$parameters = array() )
static

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

◆ getMaxMargin()

getMaxMargin ( )
staticprotected

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

◆ getNodeInfo()

getNodeInfo ( $primary)
staticprotected

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

◆ getParentTree()

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 строка 592

◆ getPathToMultipleNodes()

getPathToMultipleNodes ( $nodeInfo = array(),
$parameters = array(),
$behaviour = array('SHOW_LEAF' => true) )
static

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

◆ getPathToNode()

getPathToNode ( $primary,
$parameters,
$behaviour = array('SHOW_LEAF' => true) )
static

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

◆ getPathToNodeByCondition()

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 строка 379

◆ getSubTree()

getSubTree ( $primary,
$parameters = array() )
static

Fetches a set of items which form sub-tree of a given node

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

◆ getSubtreeRangeSqlForNode()

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 строка 232

◆ makeSortSpace()

makeSortSpace ( $primary,
$direction,
$primaryParent,
$knownSort = false )
staticfinalprotected

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

◆ manageFreeSpace()

manageFreeSpace ( $right,
$length = 2,
$op = self::SPACE_ADD,
$exceptId = false )
staticfinalprotected

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

◆ mergeRelationsFromTemporalTable()

mergeRelationsFromTemporalTable ( $temporalTabName,
$additinalFlds = array(),
$fldMap = array() )
static

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

◆ moveSubtree()

moveSubtree ( $primary,
$primaryDst )
staticfinalprotected

PROTECTED.

Do not call directly, only inside update()

Аргументы
int$primarySubtree`s root id to move
int$primaryDstItem id to attach our subtree to

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

◆ processInsertInstruction()

processInsertInstruction ( & $data)
staticfinalprotected

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

◆ rebalance()

rebalance ( $node,
$id )
staticprotected

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

◆ resort()

resort ( $dontCareEvents = false)
static

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

◆ update()

update ( $primary,
array $data )
static

Переопределяется в LocationTable.

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

◆ updateExtended()

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 строка 157

◆ walkTreeInDeep()

walkTreeInDeep ( $primary,
$edges,
& $nodes,
$margin,
$depth = 0,
$dontCareEvents = false )
staticfinalprotected

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

Поля

◆ BLOCK_INSERT_MTU

const BLOCK_INSERT_MTU = 9999

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

◆ SORT_FREE_AFTER

const SORT_FREE_AFTER = 2

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

◆ SORT_FREE_BEFORE

const SORT_FREE_BEFORE = 1

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

◆ SORT_HOLE_SIZE

const SORT_HOLE_SIZE = 10

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

◆ SORT_HOLE_SIZE_HALF

const SORT_HOLE_SIZE_HALF = 5

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

◆ SPACE_ADD

const SPACE_ADD = 1

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

◆ SPACE_REMOVE

const SPACE_REMOVE = 2

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


Объявления и описания членов класса находятся в файле:
  • C:/bitrix/modules/sale/lib/location/tree.php