PHP Interface Sulu\Component\Content\Compat\StructureManagerInterface

Inheritance: extends Symfony\Component\DependencyInjection\ContainerAwareInterface
显示文件 Open project: sulu/sulu Interface Usage Examples

Public Methods

Method Description
getStructure ( string $key, string $type = Structure::TYPE_PAGE ) : Sulu\Component\Content\Compat\StructureInterface Returns structure for given key and type.
getStructures ( string $type = Structure::TYPE_PAGE ) : Sulu\Component\Content\Compat\StructureInterface[] Return all the structures of the given type.
wrapStructure ( string $type, StructureMetadata $structure ) : Sulu\Component\Content\Compat\StructureInterface Wrap the given Structure with a legacy (bridge) structure.

Method Details

getStructure() public method

Returns structure for given key and type.
public getStructure ( string $key, string $type = Structure::TYPE_PAGE ) : Sulu\Component\Content\Compat\StructureInterface
$key string
$type string
return Sulu\Component\Content\Compat\StructureInterface

getStructures() public method

Return all the structures of the given type.
public getStructures ( string $type = Structure::TYPE_PAGE ) : Sulu\Component\Content\Compat\StructureInterface[]
$type string
return Sulu\Component\Content\Compat\StructureInterface[]

wrapStructure() public method

Wrap the given Structure with a legacy (bridge) structure.
public wrapStructure ( string $type, StructureMetadata $structure ) : Sulu\Component\Content\Compat\StructureInterface
$type string
$structure Sulu\Component\Content\Metadata\StructureMetadata
return Sulu\Component\Content\Compat\StructureInterface