PHP 클래스 Jarves\Model\Node

상속: extends Jarves\Model\Base\Node
파일 보기 프로젝트 열기: jarves/jarves 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$meta Symfony\Component\HttpFoundation\ParameterBag

보호된 프로퍼티들

프로퍼티 타입 설명
$collNestedGetLinks
$offspring Node[] | null Children. Mostly used for breadcrumb.
$parents Node[] | null Parents. Mostly used for breadcrumb.
$path string

공개 메소드들

메소드 설명
__construct ( )
addOffspring ( Node $node )
addParent ( Node $node )
createPage ( string $title, string $urn, string | null $theme = null, string | null $layout = null ) : Node
getCacheKey ( ) : string
getLinks ( boolean $pWithFolders = false ) : Propel\Runtime\Collection\ObjectCollection Same as getChildren but returns only visible pages and non-folder nodes
getOffspring ( ) : Node[]
getParents ( ) : Node[] Returns all parents. Mainly used for breadcrumb.
getPath ( string $pDelimiter = ' » ' ) : string Generates a path to the current page.
hasLinks ( ) : boolean Does the current node has (valid) sub links?
isRenderable ( ) : boolean Whether this node is from type page or tray.
setPath ( string $path )

메소드 상세

__construct() 공개 메소드

public __construct ( )

addOffspring() 공개 메소드

public addOffspring ( Node $node )
$node Node

addParent() 공개 메소드

public addParent ( Node $node )
$node Node

createPage() 공개 정적인 메소드

public static createPage ( string $title, string $urn, string | null $theme = null, string | null $layout = null ) : Node
$title string
$urn string
$theme string | null
$layout string | null
리턴 Node

getCacheKey() 공개 메소드

public getCacheKey ( ) : string
리턴 string

getOffspring() 공개 메소드

public getOffspring ( ) : Node[]
리턴 Node[]

getParents() 공개 메소드

Returns all parents. Mainly used for breadcrumb.
public getParents ( ) : Node[]
리턴 Node[]

getPath() 공개 메소드

level 1 -> level 2 -> page where ' -> ' is a $pDelimiter
public getPath ( string $pDelimiter = ' » ' ) : string
$pDelimiter string
리턴 string

isRenderable() 공개 메소드

Whether this node is from type page or tray.
public isRenderable ( ) : boolean
리턴 boolean

setPath() 공개 메소드

public setPath ( string $path )
$path string

프로퍼티 상세

$meta 공개적으로 프로퍼티

public ParameterBag,Symfony\Component\HttpFoundation $meta
리턴 Symfony\Component\HttpFoundation\ParameterBag

$offspring 보호되어 있는 프로퍼티

Children. Mostly used for breadcrumb.
protected Node[],Jarves\Model|null $offspring
리턴 Node[] | null

$parents 보호되어 있는 프로퍼티

Parents. Mostly used for breadcrumb.
protected Node[],Jarves\Model|null $parents
리턴 Node[] | null

$path 보호되어 있는 프로퍼티

protected string $path
리턴 string