PHP Trait Xpressengine\Support\Tree\NodePositionTrait

Mostra file Open project: xpressengine/xpressengine

Public Methods

Method Description
setOrder ( Node $item, integer | null $position = null ) : void Set item ordering value

Protected Methods

Method Description
linkHierarchy ( Node $item, Node $parent ) : boolean Linked parent and child relation
unlinkHierarchy ( Node $item, Node $parent ) : integer unlinked parent and child relation

Method Details

linkHierarchy() protected method

Linked parent and child relation
protected linkHierarchy ( Node $item, Node $parent ) : boolean
$item Node child item instance
$parent Node parent item instance
return boolean

setOrder() public method

Set item ordering value
public setOrder ( Node $item, integer | null $position = null ) : void
$item Node item object
$position integer | null sequence value
return void

unlinkHierarchy() protected method

unlinked parent and child relation
protected unlinkHierarchy ( Node $item, Node $parent ) : integer
$item Node child item instance
$parent Node parent item instance
return integer affected row count