class Push extends BaseFilter

Push provides the 'push' twig filter.

Pushes item onto an array or collection.

{% set array =  array|push(item) %}

Methods

__construct()

No description

getFilterOptions()

No description

object
getDI()

Return default dependency injector

string
getFilterName()

Return the filter name

array
handle($arr, $arg)

Handle filter response

Details

in BaseFilter at line 13
__construct()

in BaseFilter at line 22
getFilterOptions()

in BaseFilter at line 31
object getDI()

Return default dependency injector

Return Value

object Phalcon\Di

at line 19
string getFilterName()

Return the filter name

Return Value

string

at line 30
array handle($arr, $arg)

Handle filter response

Parameters

$arr
$arg

Return Value

array