class NodesSourcesExtension extends Twig_Extension (View source)

Extension that allow to gather nodes-source from hierarchy

Properties

protected $preview
protected $securityAuthorizationChecker

Methods

__construct(AuthorizationChecker $securityAuthorizationChecker, NodesSourcesHandler $nodesSourcesHandler, boolean $preview = false, bool $throwExceptions = false)

No description

getName()

No description

getFilters()

No description

array
getChildren(NodesSources $ns = null, array $criteria = null, array $order = null)

No description

getNext(NodesSources $ns = null, array $criteria = null, array $order = null)

No description

getPrevious(NodesSources $ns = null, array $criteria = null, array $order = null)

No description

getLastSibling(NodesSources $ns = null, array $criteria = null, array $order = null)

No description

getFirstSibling(NodesSources $ns = null, array $criteria = null, array $order = null)

No description

getParent(NodesSources $ns = null)

No description

array
getParents(NodesSources $ns = null, array $criteria = null, null $preview = null)

No description

array
getTags(NodesSources $ns = null)

No description

Details

__construct(AuthorizationChecker $securityAuthorizationChecker, NodesSourcesHandler $nodesSourcesHandler, boolean $preview = false, bool $throwExceptions = false)

Parameters

AuthorizationChecker $securityAuthorizationChecker
NodesSourcesHandler $nodesSourcesHandler
boolean $preview
bool $throwExceptions Trigger exception if using filter on NULL values (default: false)

getName()

getFilters()

array getChildren(NodesSources $ns = null, array $criteria = null, array $order = null)

Parameters

NodesSources $ns
array $criteria
array $order

Return Value

array

Exceptions

Twig_Error_Runtime

NodesSources getNext(NodesSources $ns = null, array $criteria = null, array $order = null)

Parameters

NodesSources $ns
array $criteria
array $order

Return Value

NodesSources

Exceptions

Twig_Error_Runtime

NodesSources getPrevious(NodesSources $ns = null, array $criteria = null, array $order = null)

Parameters

NodesSources $ns
array $criteria
array $order

Return Value

NodesSources

Exceptions

Twig_Error_Runtime

NodesSources getLastSibling(NodesSources $ns = null, array $criteria = null, array $order = null)

Parameters

NodesSources $ns
array $criteria
array $order

Return Value

NodesSources

Exceptions

Twig_Error_Runtime

NodesSources getFirstSibling(NodesSources $ns = null, array $criteria = null, array $order = null)

Parameters

NodesSources $ns
array $criteria
array $order

Return Value

NodesSources

Exceptions

Twig_Error_Runtime

NodesSources getParent(NodesSources $ns = null)

Parameters

NodesSources $ns

Return Value

NodesSources

Exceptions

Twig_Error_Runtime

array getParents(NodesSources $ns = null, array $criteria = null, null $preview = null)

Parameters

NodesSources $ns
array $criteria
null $preview

Return Value

array

Exceptions

Twig_Error_Runtime

array getTags(NodesSources $ns = null)

Parameters

NodesSources $ns

Return Value

array

Exceptions

Twig_Error_Runtime