PHP Class Sulu\Component\Webspace\StructureProvider\WebspaceStructureProvider

Inheritance: implements Sulu\Component\Webspace\StructureProvider\WebspaceStructureProviderInterface
Afficher le fichier Open project: sulu/sulu Class Usage Examples

Protected Properties

Свойство Type Description
$cache Doctrine\Common\Cache\Cache
$structureManager Sulu\Component\Content\Compat\StructureManagerInterface
$twig Twig_Environment

Méthodes publiques

Méthode Description
__construct ( Twig_Environment $twig, Sulu\Component\Content\Compat\StructureManagerInterface $structureManager, Doctrine\Common\Cache\Cache $cache )
getStructures ( $webspaceKey )

Méthodes protégées

Méthode Description
loadStructures ( string $webspaceKey ) : array Returns and caches structures for given webspace.
templateExists ( string $template ) : boolean checks if a template with given name exists.

Method Details

__construct() public méthode

public __construct ( Twig_Environment $twig, Sulu\Component\Content\Compat\StructureManagerInterface $structureManager, Doctrine\Common\Cache\Cache $cache )
$twig Twig_Environment
$structureManager Sulu\Component\Content\Compat\StructureManagerInterface
$cache Doctrine\Common\Cache\Cache

getStructures() public méthode

public getStructures ( $webspaceKey )

loadStructures() protected méthode

Returns and caches structures for given webspace.
protected loadStructures ( string $webspaceKey ) : array
$webspaceKey string
Résultat array

templateExists() protected méthode

checks if a template with given name exists.
protected templateExists ( string $template ) : boolean
$template string
Résultat boolean

Property Details

$cache protected_oe property

protected Cache,Doctrine\Common\Cache $cache
Résultat Doctrine\Common\Cache\Cache

$structureManager protected_oe property

protected StructureManagerInterface,Sulu\Component\Content\Compat $structureManager
Résultat Sulu\Component\Content\Compat\StructureManagerInterface

$twig protected_oe property

protected Twig_Environment $twig
Résultat Twig_Environment