\Disco\twigPageNode

Compliler for `page` twig template tag. <a href='http://twig.sensiolabs.org/doc/advanced.html#tags'>Twig Tag Docs</a>.

Summary

Methods
Properties
Constants
compile()
page()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

compile()

compile(\Twig_Compiler  $compiler) : void

Provide the functionality for compiling a {{page}} {{endpage}} tag.

Parameters

\Twig_Compiler $compiler

A \Twig_compliler instance.

page()

page(  $object) : array

The method the twig tag `page` uses to perform pagination on lookups and models.

Parameters

$object

Throws

\Disco\exceptions\Excetion

When trying to use the lookup tag on a class that does not extend {@link \Disco\classes\LookUp} or {@link \Disco\classes\Model}.

Returns

array —

The first element is the {@link \Disco\classes\Paginate}, the second is the results of the lookup or model query.