PHP 클래스 Eccube\Twig\Extension\EccubeExtension

상속: extends Twig_Extension
파일 보기 프로젝트 열기: ec-cube/ec-cube

공개 메소드들

메소드 설명
__construct ( Silex\Application $app )
getActiveMenus ( array $menus = [] ) : array Name of this extension
getCalcIncTax ( $price, $tax_rate, $tax_rule ) : string Name of this extension
getCsrfTokenForAnchor ( ) : string Name of this extension
getDateFormatFilter ( $date, $value = '', $format = 'Y/m/d' ) : string Name of this extension
getEllipsis ( $value, $length = 100, $end = '...' ) : string Name of this extension
getFilters ( ) : array Returns a list of filters.
getFunctions ( ) : array Returns a list of functions to add to the existing list.
getName ( ) : string Name of this extension
getNoImageProduct ( $image ) : string return No Image filename
getPath ( string $name, array $parameters = [], boolean $relative = false ) : string bind から URL へ変換します。 \Symfony\Bridge\Twig\Extension\RoutingExtension::getPath の処理を拡張し、 RouteNotFoundException 発生時に E_USER_WARNING を発生させ、 文字列 "/404?bind={bind}" を返します。
getPriceFilter ( $number, $decimals, $decPoint = '.', $thousandsSep = ',' ) : string Name of this extension
getTimeAgo ( $date ) : string Name of this extension
getUrl ( string $name, array $parameters = [], boolean $schemeRelative = false ) : string bind から URL へ変換します。 \Symfony\Bridge\Twig\Extension\RoutingExtension::getUrl の処理を拡張し、 RouteNotFoundException 発生時に E_USER_WARNING を発生させ、 文字列 "/404?bind={bind}" を返します。

메소드 상세

__construct() 공개 메소드

public __construct ( Silex\Application $app )
$app Silex\Application

getActiveMenus() 공개 메소드

Name of this extension
public getActiveMenus ( array $menus = [] ) : array
$menus array
리턴 array

getCalcIncTax() 공개 메소드

Name of this extension
public getCalcIncTax ( $price, $tax_rate, $tax_rule ) : string
리턴 string

getCsrfTokenForAnchor() 공개 메소드

Name of this extension
public getCsrfTokenForAnchor ( ) : string
리턴 string

getDateFormatFilter() 공개 메소드

Name of this extension
public getDateFormatFilter ( $date, $value = '', $format = 'Y/m/d' ) : string
리턴 string

getEllipsis() 공개 메소드

Name of this extension
public getEllipsis ( $value, $length = 100, $end = '...' ) : string
리턴 string

getFilters() 공개 메소드

Returns a list of filters.
public getFilters ( ) : array
리턴 array

getFunctions() 공개 메소드

Returns a list of functions to add to the existing list.
public getFunctions ( ) : array
리턴 array An array of functions

getName() 공개 메소드

Name of this extension
public getName ( ) : string
리턴 string

getNoImageProduct() 공개 메소드

return No Image filename
public getNoImageProduct ( $image ) : string
리턴 string

getPath() 공개 메소드

bind から URL へ変換します。 \Symfony\Bridge\Twig\Extension\RoutingExtension::getPath の処理を拡張し、 RouteNotFoundException 発生時に E_USER_WARNING を発生させ、 文字列 "/404?bind={bind}" を返します。
public getPath ( string $name, array $parameters = [], boolean $relative = false ) : string
$name string
$parameters array
$relative boolean
리턴 string URL

getPriceFilter() 공개 메소드

Name of this extension
public getPriceFilter ( $number, $decimals, $decPoint = '.', $thousandsSep = ',' ) : string
리턴 string

getTimeAgo() 공개 메소드

Name of this extension
public getTimeAgo ( $date ) : string
리턴 string

getUrl() 공개 메소드

bind から URL へ変換します。 \Symfony\Bridge\Twig\Extension\RoutingExtension::getUrl の処理を拡張し、 RouteNotFoundException 発生時に E_USER_WARNING を発生させ、 文字列 "/404?bind={bind}" を返します。
public getUrl ( string $name, array $parameters = [], boolean $schemeRelative = false ) : string
$name string
$parameters array
$schemeRelative boolean
리턴 string URL