PHP 클래스 Whoops\Util\TemplateHelper

파일 보기 프로젝트 열기: filp/whoops 1 사용 예제들

공개 메소드들

메소드 설명
breakOnDelimiter ( string $delimiter, string $s ) : string Makes sure that the given string breaks on the delimiter.
delVariable ( string $variableName ) Unsets a single template variable, by its name
dump ( mixed $value ) : string Format the given value into a human readable string.
dumpArgs ( Whoops\Exception\Frame $frame ) : string Format the args of the given Frame as a human readable html string
escape ( string $raw ) : string Escapes a string for output in an HTML document
escapeButPreserveUris ( string $raw ) : string Escapes a string for output in an HTML document, but preserves URIs within it, and converts them to clickable anchor elements.
getCloner ( ) : AbstractCloner Get the cloner used for dumping variables.
getVariable ( string $variableName, mixed $defaultValue = null ) : mixed Gets a single template variable, by its name, or $defaultValue if the variable does not exist
getVariables ( ) : array Returns all variables for this helper
render ( string $template, array $additionalVariables = null ) Given a template path, render it within its own scope. This method also accepts an array of additional variables to be passed to the template.
setCloner ( AbstractCloner $cloner ) Set the cloner used for dumping variables.
setVariable ( string $variableName, mixd $variableValue ) Sets a single template variable, by its name:
setVariables ( array $variables ) Sets the variables to be passed to all templates rendered by this template helper.
shorten ( string $path ) : string Replace the part of the path that all files have in common.
slug ( string $original ) : string Convert a string to a slug version of itself

비공개 메소드들

메소드 설명
getDumper ( )

메소드 상세

breakOnDelimiter() 공개 메소드

Makes sure that the given string breaks on the delimiter.
public breakOnDelimiter ( string $delimiter, string $s ) : string
$delimiter string
$s string
리턴 string

delVariable() 공개 메소드

Unsets a single template variable, by its name
public delVariable ( string $variableName )
$variableName string

dump() 공개 메소드

Format the given value into a human readable string.
public dump ( mixed $value ) : string
$value mixed
리턴 string

dumpArgs() 공개 메소드

Format the args of the given Frame as a human readable html string
public dumpArgs ( Whoops\Exception\Frame $frame ) : string
$frame Whoops\Exception\Frame
리턴 string the rendered html

escape() 공개 메소드

Escapes a string for output in an HTML document
public escape ( string $raw ) : string
$raw string
리턴 string

escapeButPreserveUris() 공개 메소드

Escapes a string for output in an HTML document, but preserves URIs within it, and converts them to clickable anchor elements.
public escapeButPreserveUris ( string $raw ) : string
$raw string
리턴 string

getCloner() 공개 메소드

Get the cloner used for dumping variables.
public getCloner ( ) : AbstractCloner
리턴 Symfony\Component\VarDumper\Cloner\AbstractCloner

getVariable() 공개 메소드

Gets a single template variable, by its name, or $defaultValue if the variable does not exist
public getVariable ( string $variableName, mixed $defaultValue = null ) : mixed
$variableName string
$defaultValue mixed
리턴 mixed

getVariables() 공개 메소드

Returns all variables for this helper
public getVariables ( ) : array
리턴 array

render() 공개 메소드

Given a template path, render it within its own scope. This method also accepts an array of additional variables to be passed to the template.
public render ( string $template, array $additionalVariables = null )
$template string
$additionalVariables array

setCloner() 공개 메소드

Set the cloner used for dumping variables.
public setCloner ( AbstractCloner $cloner )
$cloner Symfony\Component\VarDumper\Cloner\AbstractCloner

setVariable() 공개 메소드

Sets a single template variable, by its name:
public setVariable ( string $variableName, mixd $variableValue )
$variableName string
$variableValue mixd

setVariables() 공개 메소드

Sets the variables to be passed to all templates rendered by this template helper.
public setVariables ( array $variables )
$variables array

shorten() 공개 메소드

Replace the part of the path that all files have in common.
public shorten ( string $path ) : string
$path string
리턴 string

slug() 공개 메소드

Convert a string to a slug version of itself
public slug ( string $original ) : string
$original string
리턴 string