PHP Класс Jarves\Model\Node

Наследование: extends Jarves\Model\Base\Node
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$meta Symfony\Component\HttpFoundation\ParameterBag

Защищенные свойства (Protected)

Свойство Тип Описание
$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