PHP Класс Neos\ContentRepository\Domain\Model\NodeTemplate

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

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

Свойство Тип Описание
$identifier string The UUID to use for the new node. Use with care.
$name string The node name which acts as a path segment for its node path

Открытые методы

Метод Описание
getIdentifier ( ) : string Returns the UUID set in this NodeTemplate.
getName ( ) : string Get the name of this node template.
getWorkspace ( ) : void A NodeTemplate is not stored in any workspace, thus this method returns NULL.
setIdentifier ( string $identifier ) : void Allows to set a UUID to use for the node that will be created from this NodeTemplate. Use with care, usually identifier generation should be left to the ContentRepository.
setName ( string $newName ) : void Set the name to $newName

Описание методов

getIdentifier() публичный Метод

Returns the UUID set in this NodeTemplate.
public getIdentifier ( ) : string
Результат string

getName() публичный Метод

If a name has been set using setName(), it is returned. If not, but the template has a (non-empty) title property, this property is used to generate a valid name. As a last resort a random name is returned (in the form "name-XXXXX").
public getName ( ) : string
Результат string

getWorkspace() публичный Метод

A NodeTemplate is not stored in any workspace, thus this method returns NULL.
public getWorkspace ( ) : void
Результат void

setIdentifier() публичный Метод

Allows to set a UUID to use for the node that will be created from this NodeTemplate. Use with care, usually identifier generation should be left to the ContentRepository.
public setIdentifier ( string $identifier ) : void
$identifier string
Результат void

setName() публичный Метод

Set the name to $newName
public setName ( string $newName ) : void
$newName string
Результат void

Описание свойств

$identifier защищенное свойство

The UUID to use for the new node. Use with care.
protected string $identifier
Результат string

$name защищенное свойство

The node name which acts as a path segment for its node path
protected string $name
Результат string