PHP Класс Sulu\Component\Content\Compat\Structure\LegacyPropertyFactory

Устаревший:
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__construct ( Sulu\Component\DocumentManager\NamespaceRegistry $namespaceRegistry )
createProperty ( ItemMetadata $property, Sulu\Component\Content\Compat\StructureInterface $structure = null ) : Sulu\Component\Content\Compat\PropertyInterface Create a new property.
createTranslatedProperty ( object $property, string $locale, Sulu\Component\Content\Compat\StructureInterface $structure = null ) : Sulu\Component\Content\Compat\PropertyInterface Create a new "translated" property.

Приватные методы

Метод Описание
convertArrayToParameters ( $arrayParams )
createBlockProperty ( BlockMetadata $property, Sulu\Component\Content\Compat\StructureInterface $structure = null )
createSectionProperty ( SectionMetadata $property, Sulu\Component\Content\Compat\StructureInterface $structure = null )

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

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

public __construct ( Sulu\Component\DocumentManager\NamespaceRegistry $namespaceRegistry )
$namespaceRegistry Sulu\Component\DocumentManager\NamespaceRegistry

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

Create a new property.
public createProperty ( ItemMetadata $property, Sulu\Component\Content\Compat\StructureInterface $structure = null ) : Sulu\Component\Content\Compat\PropertyInterface
$property Sulu\Component\Content\Metadata\ItemMetadata
$structure Sulu\Component\Content\Compat\StructureInterface
Результат Sulu\Component\Content\Compat\PropertyInterface $property

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

Create a new "translated" property.
public createTranslatedProperty ( object $property, string $locale, Sulu\Component\Content\Compat\StructureInterface $structure = null ) : Sulu\Component\Content\Compat\PropertyInterface
$property object
$locale string
$structure Sulu\Component\Content\Compat\StructureInterface
Результат Sulu\Component\Content\Compat\PropertyInterface