class Extract extends BaseFilter

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) }}

Methods

__construct()

No description

getFilterOptions()

Allows this filter to return unescaped HTML

object
getDI()

Return default dependency injector

string
getFilterName()

Return the filter name

string
handle($text, $length = null, $offset = null)

Handle filter response

Details

in BaseFilter at line 13
__construct()

at line 50
getFilterOptions()

Allows this filter to return unescaped HTML

in BaseFilter at line 31
object getDI()

Return default dependency injector

Return Value

object Phalcon\Di

at line 23
string getFilterName()

Return the filter name

Return Value

string

at line 34
string handle($text, $length = null, $offset = null)

Handle filter response

Parameters

$text
$length
$offset

Return Value

string