PHP Class Sulu\Component\Content\Metadata\Factory\StructureMetadataFactory

Inheritance: implements Sulu\Component\Content\Metadata\Factory\StructureMetadataFactoryInterface
Afficher le fichier Open project: sulu/sulu Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( Symfony\Component\Config\Loader\LoaderInterface $loader, array $typePaths, array $defaultTypes, mixed $cachePath, mixed $debug = false )
getStructureMetadata ( $type, $structureType = null )
getStructures ( $type )
hasStructuresFor ( $type )

Private Methods

Méthode Description
assertExists ( string $type ) Assert type exists.
getDefaultStructureType ( string $type ) : string | null Return the default structure type for the the given document type.
getPaths ( string $type ) : array Get the paths from the type path configuration.
getStructureNames ( string $type ) : string[] Return the structure names for the given type (not necessarily valid).

Method Details

__construct() public méthode

public __construct ( Symfony\Component\Config\Loader\LoaderInterface $loader, array $typePaths, array $defaultTypes, mixed $cachePath, mixed $debug = false )
$loader Symfony\Component\Config\Loader\LoaderInterface
$typePaths array
$defaultTypes array
$cachePath mixed
$debug mixed

getStructureMetadata() public méthode

public getStructureMetadata ( $type, $structureType = null )

getStructures() public méthode

public getStructures ( $type )

hasStructuresFor() public méthode

public hasStructuresFor ( $type )