Extract
extends BaseFilter
in package
Extract is a dropin replacement for Gryphon's extract filter, using the new paragraph extraction functionality.
{{ article.copy|extract(limit) }} {{ article.copy|extract(limit, offset) }}
Table of Contents
- __construct() : mixed
- getDI() : object
- Return default dependency injector
- getFilterName() : string
- Return the filter name
- getFilterOptions() : array<string|int, mixed>
- Allows this filter to return unescaped HTML
- handle() : string
- Handle filter response
Methods
__construct()
public
__construct() : mixed
Return values
mixed —getDI()
Return default dependency injector
public
getDI() : object
Return values
object —Phalcon\Di
getFilterName()
Return the filter name
public
getFilterName() : string
Return values
string —getFilterOptions()
Allows this filter to return unescaped HTML
public
getFilterOptions() : array<string|int, mixed>
Return values
array<string|int, mixed> —handle()
Handle filter response
public
handle(mixed $text[, mixed $length = null ][, mixed $offset = null ]) : string
Parameters
- $text : mixed
- $length : mixed = null
- $offset : mixed = null