PHP Class Jarves\Model\Node

Inheritance: extends Jarves\Model\Base\Node
Afficher le fichier Open project: jarves/jarves Class Usage Examples

Méthodes publiques

Свойство Type Description
$meta Symfony\Component\HttpFoundation\ParameterBag

Protected Properties

Свойство Type Description
$collNestedGetLinks
$offspring Node[] | null Children. Mostly used for breadcrumb.
$parents Node[] | null Parents. Mostly used for breadcrumb.
$path string

Méthodes publiques

Méthode Description
__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 )

Method Details

__construct() public méthode

public __construct ( )

addOffspring() public méthode

public addOffspring ( Node $node )
$node Node

addParent() public méthode

public addParent ( Node $node )
$node Node

createPage() public static méthode

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
Résultat Node

getCacheKey() public méthode

public getCacheKey ( ) : string
Résultat string

getOffspring() public méthode

public getOffspring ( ) : Node[]
Résultat Node[]

getParents() public méthode

Returns all parents. Mainly used for breadcrumb.
public getParents ( ) : Node[]
Résultat Node[]

getPath() public méthode

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

isRenderable() public méthode

Whether this node is from type page or tray.
public isRenderable ( ) : boolean
Résultat boolean

setPath() public méthode

public setPath ( string $path )
$path string

Property Details

$meta public_oe property

public ParameterBag,Symfony\Component\HttpFoundation $meta
Résultat Symfony\Component\HttpFoundation\ParameterBag

$offspring protected_oe property

Children. Mostly used for breadcrumb.
protected Node[],Jarves\Model|null $offspring
Résultat Node[] | null

$parents protected_oe property

Parents. Mostly used for breadcrumb.
protected Node[],Jarves\Model|null $parents
Résultat Node[] | null

$path protected_oe property

protected string $path
Résultat string