PHP Trait Pagekit\Site\Model\NodeModelTrait

Inheritance: use trait Pagekit\Database\ORM\ModelTrait
Afficher le fichier Open project: pagekit/pagekit

Protected Properties

Свойство Type Description
$nodes

Méthodes publiques

Méthode Description
deleting ( $event, Pagekit\Site\Model\Node $node )
find ( mixed $id, boolean $cached = false ) : static Retrieves an entity by its identifier.
findAll ( boolean $cached = false ) : static[] Retrieves all entities.
findByMenu ( $menu, $cached = false ) : static[] Retrieves all nodes by menu.
fixOrphanedNodes ( ) : integer Sets parent_id of orphaned nodes to zero.
modelFind ( )
saving ( $event, Pagekit\Site\Model\Node $node )

Method Details

deleting() public static méthode

public static deleting ( $event, Pagekit\Site\Model\Node $node )
$node Pagekit\Site\Model\Node

find() public static méthode

Retrieves an entity by its identifier.
public static find ( mixed $id, boolean $cached = false ) : static
$id mixed
$cached boolean
Résultat static

findAll() public static méthode

Retrieves all entities.
public static findAll ( boolean $cached = false ) : static[]
$cached boolean
Résultat static[]

findByMenu() public static méthode

Retrieves all nodes by menu.
public static findByMenu ( $menu, $cached = false ) : static[]
Résultat static[]

fixOrphanedNodes() public static méthode

Sets parent_id of orphaned nodes to zero.
public static fixOrphanedNodes ( ) : integer
Résultat integer

modelFind() public méthode

public modelFind ( )

saving() public static méthode

public static saving ( $event, Pagekit\Site\Model\Node $node )
$node Pagekit\Site\Model\Node

Property Details

$nodes protected_oe static_oe property

protected static $nodes