Method |
Description |
|
__construct ( Silex\Application $app ) |
|
|
current ( Content | array $content ) : boolean |
Returns true, if the given content is the current content. |
|
excerpt ( Content | array | string $content, integer $length = 200, array | string | null $focus = null ) : string |
Create an excerpt for the given content. |
|
fields ( Twig_Environment $env, Content $record = null, boolean $common = true, boolean $extended = false, boolean $repeaters = true, boolean $templateFields = true, string $template = '_sub_fields.twig', string | array $exclude = null, boolean $skip_uses = true ) : string |
Output all (relevant) fields to the browser. Convenient for dumping the
content in order in, say, a record.twig template, without having to
iterate over them in the browser. |
|
listTemplates ( string $filter = null, boolean $safe = false ) : array |
Lists templates, optionally filtered by $filter. |
|
pager ( Twig_Environment $env, string $pagerName = '', integer $surr = 4, string $template = '_sub_pager.twig', string $class = '' ) : string |
Output a simple pager, for paginated listing pages. |
|
selectField ( array $content, array | string $fieldName, boolean $startempty = false, string $keyName = 'id' ) : array |
Return a selected field from a contentset. |
|