PHP Interface Sulu\Component\Content\Metadata\Factory\StructureMetadataFactoryInterface

ファイルを表示 Open project: sulu/sulu Interface Usage Examples

Public Methods

Method Description
getStructureMetadata ( mixed $type, mixed $structureType ) : StructureMetadata | null Return the structure of the given $type and $structureType.
getStructures ( $type ) : StructureMetadata[] Return all structures of the given type.
hasStructuresFor ( string $type ) : boolean Return true if the given type has been registered with the structure factory.

Method Details

getStructureMetadata() public method

Return the structure of the given $type and $structureType.
public getStructureMetadata ( mixed $type, mixed $structureType ) : StructureMetadata | null
$type mixed The primary system type, e.g. page, snippet
$structureType mixed The secondary user type
return Sulu\Component\Content\Metadata\StructureMetadata | null

getStructures() public method

Return all structures of the given type.
public getStructures ( $type ) : StructureMetadata[]
return Sulu\Component\Content\Metadata\StructureMetadata[]

hasStructuresFor() public method

Return true if the given type has been registered with the structure factory.
public hasStructuresFor ( string $type ) : boolean
$type string
return boolean