class EccubeExtension extends Twig_Extension

Methods

__construct(Application $app)

No description

array
getFunctions()

Returns a list of functions to add to the existing list.

array
getFilters()

Returns a list of filters.

string
getName()

Name of this extension

string
getCalcIncTax($price, $tax_rate, $tax_rule)

Name of this extension

array
getActiveMenus(array $menus = array())

Name of this extension

string
getCsrfTokenForAnchor()

Name of this extension

string
getNoImageProduct($image)

return No Image filename

string
getDateFormatFilter($date, $value = '', $format = 'Y/m/d')

Name of this extension

string
getPriceFilter($number, $decimals, $decPoint = '.', $thousandsSep = ',')

Name of this extension

string
getEllipsis($value, $length = 100, $end = '...')

Name of this extension

string
getTimeAgo($date)

Name of this extension

Details

at line 35
__construct(Application $app)

Parameters

Application $app

at line 45
array getFunctions()

Returns a list of functions to add to the existing list.

Return Value

array An array of functions

at line 59
array getFilters()

Returns a list of filters.

Return Value

array

at line 75
string getName()

Name of this extension

Return Value

string

at line 85
string getCalcIncTax($price, $tax_rate, $tax_rule)

Name of this extension

Parameters

$price
$tax_rate
$tax_rule

Return Value

string

at line 96
array getActiveMenus(array $menus = array())

Name of this extension

Parameters

array $menus

Return Value

array

at line 111
string getCsrfTokenForAnchor()

Name of this extension

Return Value

string

at line 122
string getNoImageProduct($image)

return No Image filename

Parameters

$image

Return Value

string

at line 132
string getDateFormatFilter($date, $value = '', $format = 'Y/m/d')

Name of this extension

Parameters

$date
$value
$format

Return Value

string

at line 146
string getPriceFilter($number, $decimals, $decPoint = '.', $thousandsSep = ',')

Name of this extension

Parameters

$number
$decimals
$decPoint
$thousandsSep

Return Value

string

at line 159
string getEllipsis($value, $length = 100, $end = '...')

Name of this extension

Parameters

$value
$length
$end

Return Value

string

at line 169
string getTimeAgo($date)

Name of this extension

Parameters

$date

Return Value

string