PHP 트레잇 Pagekit\Site\Model\NodeModelTrait

상속: use trait Pagekit\Database\ORM\ModelTrait
파일 보기 프로젝트 열기: pagekit/pagekit

보호된 프로퍼티들

프로퍼티 타입 설명
$nodes

공개 메소드들

메소드 설명
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 )

메소드 상세

deleting() 공개 정적인 메소드

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

find() 공개 정적인 메소드

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

findAll() 공개 정적인 메소드

Retrieves all entities.
public static findAll ( boolean $cached = false ) : static[]
$cached boolean
리턴 static[]

findByMenu() 공개 정적인 메소드

Retrieves all nodes by menu.
public static findByMenu ( $menu, $cached = false ) : static[]
리턴 static[]

fixOrphanedNodes() 공개 정적인 메소드

Sets parent_id of orphaned nodes to zero.
public static fixOrphanedNodes ( ) : integer
리턴 integer

modelFind() 공개 메소드

public modelFind ( )

saving() 공개 정적인 메소드

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

프로퍼티 상세

$nodes 보호되어 있는 정적으로 프로퍼티

protected static $nodes