PHP 클래스 Bolt\Twig\TwigExtension

상속: extends Twig_Extension, implements Twig_Extension_GlobalsInterface
파일 보기 프로젝트 열기: bolt/bolt 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Silex\Application $app, Pimple $handlers, boolean $safe )
addData ( $path, $value )
buid ( )
canonical ( )
countWidgets ( $location = null, $zone = 'frontend' )
current ( $content )
decorateTT ( $str )
editable ( $html, $content, $field )
excerpt ( $content, $length = 200, $focus = null )
fields ( Twig_Environment $env, $record = null, $common = true, $extended = false, $repeaters = true, $templatefields = true, $template = '_sub_fields.twig', $exclude = null, $skip_uses = true )
fileExists ( $fn )
getFilters ( )
getFunctions ( )
getGlobals ( )
getName ( )
getTests ( )
getTokenParsers ( )
getUser ( $who )
getUserId ( $who )
getWidgets ( )
hasWidgets ( $location = null, $zone = 'frontend' )
hattr ( $attributes )
hclass ( $classes )
htmlLang ( )
image ( $filename = null, $width = null, $height = null, $crop = null )
imageInfo ( $filename )
isAllowed ( $what, $content = null )
isMobileClient ( )
jsonDecode ( $string )
link ( $location, $label = '[link]' )
listTemplates ( $filter = '' )
localeDateTime ( $dateTime, $format = '%B %e, %Y %H:%M' )
logLevel ( $level )
markdown ( $content )
menu ( Twig_Environment $env, $identifier = '', $template = '_sub_menu.twig', $params = [] )
order ( $array, $on, $onSecondary = '' )
pager ( Twig_Environment $env, $pagerName = '', $surr = 4, $template = '_sub_pager.twig', $class = '' )
popup ( $filename = null, $width = null, $height = null, $crop = null, $title = null )
pregReplace ( $str, $pattern, $replacement = '', $limit )
printBacktrace ( $depth = 15 )
printFirebug ( $var, $msg = '' )
randomQuote ( )
redirect ( $path )
request ( $parameter, $from = '', $stripslashes = false )
safeString ( $str, $strict = false, $extrachars = '' )
selectField ( $content, $fieldname, $startempty = false, $keyname = 'id' )
showImage ( $filename = null, $width = null, $height = null, $crop = null )
shuffle ( $array )
shy ( $str )
slug ( $str )
stack ( $types = [] )
testJson ( $string )
testStackable ( $filename )
thumbnail ( $filename = null, $width = null, $height = null, $crop = null )
token ( )
trans ( )
twig ( $snippet, $extravars = [] )
unique ( $array1, $array2 )
widgets ( $location = null, $zone = 'frontend', $wrapper = 'widgetwrapper.twig' )
ymllink ( $str )

메소드 상세

__construct() 공개 메소드

public __construct ( Silex\Application $app, Pimple $handlers, boolean $safe )
$app Silex\Application
$handlers Pimple
$safe boolean

addData() 공개 메소드

또한 보기: Bolt\Twig\Handler\AdminHandler::addData()
public addData ( $path, $value )

buid() 공개 메소드

또한 보기: Bolt\Twig\Handler\AdminHandler::buid()
public buid ( )

canonical() 공개 메소드

또한 보기: Bolt\Twig\Handler\RoutingHandler::canonical()
public canonical ( )

countWidgets() 공개 메소드

또한 보기: Bolt\Twig\Handler\WidgetHandler::countWidgets()
public countWidgets ( $location = null, $zone = 'frontend' )

current() 공개 메소드

또한 보기: Bolt\Twig\Handler\RecordHandler::current()
public current ( $content )

decorateTT() 공개 메소드

또한 보기: Bolt\Twig\Handler\HtmlHandler::decorateTT()
public decorateTT ( $str )

editable() 공개 메소드

또한 보기: Bolt\Twig\Handler\HtmlHandler::editable()
public editable ( $html, $content, $field )

excerpt() 공개 메소드

또한 보기: Bolt\Twig\Handler\RecordHandler::excerpt()
public excerpt ( $content, $length = 200, $focus = null )

fields() 공개 메소드

또한 보기: Bolt\Twig\Handler\RecordHandler::fields()
public fields ( Twig_Environment $env, $record = null, $common = true, $extended = false, $repeaters = true, $templatefields = true, $template = '_sub_fields.twig', $exclude = null, $skip_uses = true )
$env Twig_Environment

fileExists() 공개 메소드

또한 보기: Bolt\Twig\Handler\UtilsHandler::fileExists()
public fileExists ( $fn )

getFilters() 공개 메소드

public getFilters ( )

getFunctions() 공개 메소드

public getFunctions ( )

getGlobals() 공개 메소드

As of Twig 2.x, the ability to register a global variable after runtime or the extensions have been initialized will not be possible any longer, but changing the value of an already registered global is possible.
public getGlobals ( )

getName() 공개 메소드

public getName ( )

getTests() 공개 메소드

public getTests ( )

getTokenParsers() 공개 메소드

public getTokenParsers ( )

getUser() 공개 메소드

또한 보기: Bolt\Twig\Handler\UserHandler::getUser()
public getUser ( $who )

getUserId() 공개 메소드

또한 보기: Bolt\Twig\Handler\UserHandler::getUserId()
public getUserId ( $who )

getWidgets() 공개 메소드

또한 보기: Bolt\Twig\Handler\WidgetHandler::getWidgets()
public getWidgets ( )

hasWidgets() 공개 메소드

또한 보기: Bolt\Twig\Handler\WidgetHandler::hasWidgets()
public hasWidgets ( $location = null, $zone = 'frontend' )

hattr() 공개 메소드

또한 보기: Bolt\Twig\Handler\AdminHandler::hattr()
public hattr ( $attributes )

hclass() 공개 메소드

또한 보기: Bolt\Twig\Handler\AdminHandler::hclass()
public hclass ( $classes )

htmlLang() 공개 메소드

또한 보기: Bolt\Twig\Handler\HtmlHandler::htmlLang()
public htmlLang ( )

image() 공개 메소드

또한 보기: Bolt\Twig\Handler\ImageHandler::image()
public image ( $filename = null, $width = null, $height = null, $crop = null )

imageInfo() 공개 메소드

또한 보기: Bolt\Twig\Handler\ImageHandler::imageInfo()
public imageInfo ( $filename )

isAllowed() 공개 메소드

또한 보기: Bolt\Twig\Handler\UserHandler::isAllowed()
public isAllowed ( $what, $content = null )

isMobileClient() 공개 메소드

또한 보기: Bolt\Twig\Handler\HtmlHandler::isMobileClient()
public isMobileClient ( )

jsonDecode() 공개 메소드

또한 보기: Bolt\Twig\Handler\TextHandler::jsonDecode()
public jsonDecode ( $string )

listTemplates() 공개 메소드

또한 보기: Bolt\Twig\Handler\RecordHandler::listTemplates()
public listTemplates ( $filter = '' )

localeDateTime() 공개 메소드

또한 보기: Bolt\Twig\Handler\TextHandler::localeDateTime()
public localeDateTime ( $dateTime, $format = '%B %e, %Y %H:%M' )

logLevel() 공개 메소드

또한 보기: Bolt\Twig\Handler\AdminHandler::logLevel()
public logLevel ( $level )

markdown() 공개 메소드

또한 보기: Bolt\Twig\Handler\HtmlHandler::markdown()
public markdown ( $content )

menu() 공개 메소드

또한 보기: Bolt\Twig\Handler\HtmlHandler::menu()
public menu ( Twig_Environment $env, $identifier = '', $template = '_sub_menu.twig', $params = [] )
$env Twig_Environment

order() 공개 메소드

또한 보기: Bolt\Twig\Handler\ArrayHandler::order()
public order ( $array, $on, $onSecondary = '' )

pager() 공개 메소드

또한 보기: Bolt\Twig\Handler\RecordHandler::pager()
public pager ( Twig_Environment $env, $pagerName = '', $surr = 4, $template = '_sub_pager.twig', $class = '' )
$env Twig_Environment

popup() 공개 메소드

또한 보기: Bolt\Twig\Handler\ImageHandler::popup()
public popup ( $filename = null, $width = null, $height = null, $crop = null, $title = null )

pregReplace() 공개 메소드

또한 보기: Bolt\Twig\Handler\TextHandler::pregReplace()
public pregReplace ( $str, $pattern, $replacement = '', $limit )

printBacktrace() 공개 메소드

또한 보기: Bolt\Twig\Handler\UtilsHandler::printBacktrace()
public printBacktrace ( $depth = 15 )

printFirebug() 공개 메소드

또한 보기: Bolt\Twig\Handler\UtilsHandler::printFirebug()
public printFirebug ( $var, $msg = '' )

randomQuote() 공개 메소드

또한 보기: Bolt\Twig\Handler\AdminHandler::randomQuote()
public randomQuote ( )

redirect() 공개 메소드

또한 보기: Bolt\Twig\Handler\UtilsHandler::redirect()
public redirect ( $path )

request() 공개 메소드

또한 보기: Bolt\Twig\Handler\UtilsHandler::request()
public request ( $parameter, $from = '', $stripslashes = false )

safeString() 공개 메소드

또한 보기: Bolt\Twig\Handler\TextHandler::safeString()
public safeString ( $str, $strict = false, $extrachars = '' )

selectField() 공개 메소드

또한 보기: Bolt\Twig\Handler\RecordHandler::selectField()
public selectField ( $content, $fieldname, $startempty = false, $keyname = 'id' )

showImage() 공개 메소드

또한 보기: Bolt\Twig\Handler\ImageHandler::showImage()
public showImage ( $filename = null, $width = null, $height = null, $crop = null )

shuffle() 공개 메소드

또한 보기: Bolt\Twig\Handler\ArrayHandler::shuffle()
public shuffle ( $array )

shy() 공개 메소드

또한 보기: Bolt\Twig\Handler\HtmlHandler::shy()
public shy ( $str )

slug() 공개 메소드

또한 보기: Bolt\Twig\Handler\TextHandler::slug()
public slug ( $str )

stack() 공개 메소드

또한 보기: Bolt\Twig\Handler\AdminHandler::stackItems()
public stack ( $types = [] )

testJson() 공개 메소드

또한 보기: Bolt\Twig\Handler\TextHandler::testJson()
public testJson ( $string )

testStackable() 공개 메소드

또한 보기: Bolt\Twig\Handler\AdminHandler::testStackable()
public testStackable ( $filename )

thumbnail() 공개 메소드

또한 보기: Bolt\Twig\Handler\ImageHandler::thumbnail()
public thumbnail ( $filename = null, $width = null, $height = null, $crop = null )

token() 공개 메소드

또한 보기: Bolt\Twig\Handler\UserHandler::token()
public token ( )

trans() 공개 메소드

또한 보기: Bolt\Twig\Handler\AdminHandler::trans()
public trans ( )

twig() 공개 메소드

또한 보기: Bolt\Twig\Handler\HtmlHandler::twig()
public twig ( $snippet, $extravars = [] )

unique() 공개 메소드

또한 보기: Bolt\Twig\Handler\ArrayHandler::unique()
public unique ( $array1, $array2 )

widgets() 공개 메소드

또한 보기: Bolt\Twig\Handler\WidgetHandler::widgets()
public widgets ( $location = null, $zone = 'frontend', $wrapper = 'widgetwrapper.twig' )