PHP Class Sulu\Component\Content\Compat\Structure\LegacyPropertyFactory

Deprecation:
Datei anzeigen Open project: sulu/sulu Class Usage Examples

Public Methods

Method Description
__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.

Private Methods

Method Description
convertArrayToParameters ( $arrayParams )
createBlockProperty ( BlockMetadata $property, Sulu\Component\Content\Compat\StructureInterface $structure = null )
createSectionProperty ( SectionMetadata $property, Sulu\Component\Content\Compat\StructureInterface $structure = null )

Method Details

__construct() public method

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

createProperty() public method

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
return Sulu\Component\Content\Compat\PropertyInterface $property

createTranslatedProperty() public method

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
return Sulu\Component\Content\Compat\PropertyInterface