PHP Class Sulu\Component\Webspace\StructureProvider\WebspaceStructureProvider

Inheritance: implements Sulu\Component\Webspace\StructureProvider\WebspaceStructureProviderInterface
Show file Open project: sulu/sulu Class Usage Examples

Protected Properties

Property Type Description
$cache Doctrine\Common\Cache\Cache
$structureManager Sulu\Component\Content\Compat\StructureManagerInterface
$twig Twig_Environment

Public Methods

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

Protected Methods

Method 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 method

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 method

public getStructures ( $webspaceKey )

loadStructures() protected method

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

templateExists() protected method

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

Property Details

$cache protected property

protected Cache,Doctrine\Common\Cache $cache
return Doctrine\Common\Cache\Cache

$structureManager protected property

protected StructureManagerInterface,Sulu\Component\Content\Compat $structureManager
return Sulu\Component\Content\Compat\StructureManagerInterface

$twig protected property

protected Twig_Environment $twig
return Twig_Environment