Метод |
Описание |
|
__construct ( $options = null ) |
|
|
ancestors ( integer $depth = null ) : Phalcon\Mvc\Model\ResultsetInterface |
Named scope. Gets ancestors for node. |
|
append ( Phalcon\Mvc\ModelInterface $target, array $attributes = null ) : boolean |
Appends target to node as last child. |
|
appendTo ( Phalcon\Mvc\ModelInterface $target, array $attributes = null ) : boolean |
Appends node to target as last child. |
|
children ( ) : Phalcon\Mvc\Model\ResultsetInterface |
Named scope. Gets children for node (direct descendants only). |
|
deleteNode ( ) : boolean |
Deletes node and it's descendants. |
|
descendants ( integer $depth = null, boolean $addSelf = false ) : Phalcon\Mvc\Model\ResultsetInterface |
Named scope. Gets descendants for node. |
|
getIsDeletedRecord ( ) : boolean |
Returns if the current node is deleted. |
|
getIsNewRecord ( ) |
|
|
getOwner ( ) : Phalcon\Mvc\ModelInterface |
|
|
insertAfter ( Phalcon\Mvc\ModelInterface $target, array $attributes = null ) : boolean |
Inserts node as next sibling of target. |
|
insertBefore ( Phalcon\Mvc\ModelInterface $target, array $attributes = null ) : boolean |
Inserts node as previous sibling of target. |
|
isDescendantOf ( Phalcon\Mvc\ModelInterface $subj ) : boolean |
Determines if node is descendant of subject node. |
|
isLeaf ( ) : boolean |
Determines if node is leaf. |
|
isRoot ( ) : boolean |
Determines if node is root. |
|
missingMethod ( Phalcon\Mvc\ModelInterface $model, string $method, null $arguments = null ) : mixed | null | string |
Calls a method when it's missing in the model |
|
moveAfter ( Phalcon\Mvc\ModelInterface $target ) : boolean |
Move node as next sibling of target. |
|
moveAsFirst ( Phalcon\Mvc\ModelInterface $target ) : boolean |
Move node as first child of target. |
|
moveAsLast ( Phalcon\Mvc\ModelInterface $target ) : boolean |
Move node as last child of target. |
|
moveAsRoot ( ) : boolean |
Move node as new root. |
|
moveBefore ( Phalcon\Mvc\ModelInterface $target ) : boolean |
Move node as previous sibling of target. |
|
next ( ) : Phalcon\Mvc\ModelInterface |
Named scope. Gets next sibling of node. |
|
notify ( string $eventType, Phalcon\Mvc\ModelInterface $model ) |
|
|
parent ( ) : Phalcon\Mvc\ModelInterface |
Named scope. Gets parent of node. |
|
prepend ( Phalcon\Mvc\ModelInterface $target, array $attributes = null ) : boolean |
Prepends target to node as first child. |
|
prependTo ( Phalcon\Mvc\ModelInterface $target, array $attributes = null ) : boolean |
Prepends node to target as first child. |
|
prev ( ) : Phalcon\Mvc\ModelInterface |
Named scope. Gets previous sibling of node. |
|
roots ( ) : Phalcon\Mvc\Model\ResultsetInterface |
Named scope. Gets root node(s). |
|
saveNode ( array $attributes = null, array $whiteList = null ) : boolean |
Create root node if multiple-root tree mode. Update node if it's not new. |
|
setIsDeletedRecord ( boolean $value ) |
Sets if the current node is deleted. |
|
setOwner ( Phalcon\Mvc\ModelInterface $owner ) |
|
|