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

string
getPath(string $name, array $parameters = array(), boolean $relative = false)

bind から URL へ変換します。 \Symfony\Bridge\Twig\Extension\RoutingExtension::getPath の処理を拡張し、 RouteNotFoundException 発生時に EUSERWARNING を発生させ、 文字列 "/404?bind={bind}" を返します。

string
getUrl(string $name, array $parameters = array(), boolean $schemeRelative = false)

bind から URL へ変換します。 \Symfony\Bridge\Twig\Extension\RoutingExtension::getUrl の処理を拡張し、 RouteNotFoundException 発生時に EUSERWARNING を発生させ、 文字列 "/404?bind={bind}" を返します。

bool
isObject(object $value)

Check if the value is object

Details

at line 36
__construct(Application $app)

Parameters

Application $app

at line 46
array getFunctions()

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

Return Value

array An array of functions

at line 68
array getFilters()

Returns a list of filters.

Return Value

array

at line 84
string getName()

Name of this extension

Return Value

string

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

Name of this extension

Parameters

$price
$tax_rate
$tax_rule

Return Value

string

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

Name of this extension

Parameters

array $menus

Return Value

array

at line 120
string getCsrfTokenForAnchor()

Name of this extension

Return Value

string

at line 131
string getNoImageProduct($image)

return No Image filename

Parameters

$image

Return Value

string

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

Name of this extension

Parameters

$date
$value
$format

Return Value

string

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

Name of this extension

Parameters

$number
$decimals
$decPoint
$thousandsSep

Return Value

string

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

Name of this extension

Parameters

$value
$length
$end

Return Value

string

at line 178
string getTimeAgo($date)

Name of this extension

Parameters

$date

Return Value

string

at line 194
string getPath(string $name, array $parameters = array(), boolean $relative = false)

bind から URL へ変換します。 \Symfony\Bridge\Twig\Extension\RoutingExtension::getPath の処理を拡張し、 RouteNotFoundException 発生時に EUSERWARNING を発生させ、 文字列 "/404?bind={bind}" を返します。

Parameters

string $name
array $parameters
boolean $relative

Return Value

string URL

at line 217
string getUrl(string $name, array $parameters = array(), boolean $schemeRelative = false)

bind から URL へ変換します。 \Symfony\Bridge\Twig\Extension\RoutingExtension::getUrl の処理を拡張し、 RouteNotFoundException 発生時に EUSERWARNING を発生させ、 文字列 "/404?bind={bind}" を返します。

Parameters

string $name
array $parameters
boolean $schemeRelative

Return Value

string URL

at line 235
bool isObject(object $value)

Check if the value is object

Parameters

object $value

Return Value

bool