PHP Класс Neos\ContentRepository\Migration\Transformations\RenameProperty

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

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

Свойство Тип Описание
$newPropertyName string New name of property
$oldPropertyName string Property name to change

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

Метод Описание
execute ( NodeData $node ) : void Renames the configured property to the new name.
isTransformable ( NodeData $node ) : boolean Returns TRUE if the given node has a property with the name to work on and does not yet have a property with the name to rename that property to.
setFrom ( string $oldPropertyName ) : void Sets the name of the property to change.
setTo ( string $newPropertyName ) : void Sets the new name for the property to change.

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

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

Renames the configured property to the new name.
public execute ( NodeData $node ) : void
$node Neos\ContentRepository\Domain\Model\NodeData
Результат void

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

Returns TRUE if the given node has a property with the name to work on and does not yet have a property with the name to rename that property to.
public isTransformable ( NodeData $node ) : boolean
$node Neos\ContentRepository\Domain\Model\NodeData
Результат boolean

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

Sets the name of the property to change.
public setFrom ( string $oldPropertyName ) : void
$oldPropertyName string
Результат void

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

Sets the new name for the property to change.
public setTo ( string $newPropertyName ) : void
$newPropertyName string
Результат void

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

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

New name of property
protected string $newPropertyName
Результат string

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

Property name to change
protected string $oldPropertyName
Результат string