PHP 클래스 LaravelBook\Laravel4Powerpack\HTML

파일 보기 프로젝트 열기: laravelbook/laravel4-powerpack 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$encoding string The encoding to use
$macros array Custom macros registered by the user
$url Illuminate\Routing\UrlGenerator The url generator instance

공개 메소드들

메소드 설명
__call ( string $method, array $parameters ) : mixed Dynamically handle calls to custom macros.
__construct ( UrlGenerator $urlGenerator = null ) Build a new instance of HTML
action ( string $action, string $title = null, array $parameters = [], array $attributes = [], $absolute = true ) : string Generate a HTML link to a controller action
asset ( string $url, string $title = null, array $attributes = [], boolean $https = null ) : string Generate a HTML link to an asset
attributes ( array $attributes ) : string Build a list of HTML attributes from an array
decode ( string $value ) : string Convert HTML entities to HTML characters
dl ( array $list, array $attributes = [] ) : string Generate a definition list.
email ( string $email ) : string Obfuscate an e-mail address to prevent spam-bots from sniffing it.
entities ( string $value ) : string Convert HTML characters to HTML entities
getUrlGenerator ( )
image ( string $url, string $alt = null, array $attributes = [] ) : string Generate an HTML image element.
link ( string $url, string $title = null, array $attributes = [], $parameters = [], boolean $https = null ) : string Generate a HTML link
macro ( string $name, Callable $callback ) : void Register a new macro with the HTML class
mailto ( string $email, string $title = null, array $attributes = [] ) : string Generate an HTML mailto link.
ol ( array $list, array $attributes = [] ) : string Generate an ordered list of items.
route ( string $name, string $title = null, array $parameters = [], array $attributes = [], $absolute = true ) : string Generate a HTML link to a route
script ( string $url, array $attributes = [] ) : string Generate a link to a JS file
script_tag ( string $script, array $attributes = [] ) : string Generate a script tag with embed javascript
secure ( string $url, string $title = null, $parameters = [], array $attributes = [] ) : string Generate a HTTPS HTML link
secureAsset ( string $url, string $title = null, array $attributes = [] ) : string Generate a HTTPS HTML link to an asset
span ( string $value, array $attributes = [] ) : string Generate a HTML span
specialchars ( string $value ) : string Convert HTML special characters
style ( string $url, array $attributes = [] ) : string Generate a link to a CSS file.
to ( string $url, string $title = null, array $attributes = [], $parameters = [], boolean $https = null ) : string Generate a HTML link
ul ( array $list, array $attributes = [] ) : string Generate an un-ordered list of items.
wrapHTMLTag ( string $value, string $tag ) : string Wraps opening and closing HTML tags around the given input.

보호된 메소드들

메소드 설명
obfuscate ( string $value ) : string Obfuscate a string to prevent spam-bots from sniffing it

비공개 메소드들

메소드 설명
listing ( string $type, array $list, array $attributes = [] ) : string Generate an ordered or un-ordered list.

메소드 상세

__call() 공개 메소드

Dynamically handle calls to custom macros.
public __call ( string $method, array $parameters ) : mixed
$method string
$parameters array
리턴 mixed

__construct() 공개 메소드

Build a new instance of HTML
public __construct ( UrlGenerator $urlGenerator = null )
$urlGenerator Illuminate\Routing\UrlGenerator

action() 공개 메소드

An array of parameters may be specified to fill in URI segment wildcards.
public action ( string $action, string $title = null, array $parameters = [], array $attributes = [], $absolute = true ) : string
$action string
$title string
$parameters array
$attributes array
리턴 string

asset() 공개 메소드

Generate a HTML link to an asset
public asset ( string $url, string $title = null, array $attributes = [], boolean $https = null ) : string
$url string
$title string
$attributes array
$https boolean
리턴 string

attributes() 공개 메소드

Build a list of HTML attributes from an array
public attributes ( array $attributes ) : string
$attributes array
리턴 string

decode() 공개 메소드

The encoding in $encoding will be used
public decode ( string $value ) : string
$value string
리턴 string

dl() 공개 메소드

Generate a definition list.
public dl ( array $list, array $attributes = [] ) : string
$list array
$attributes array
리턴 string

email() 공개 메소드

Obfuscate an e-mail address to prevent spam-bots from sniffing it.
public email ( string $email ) : string
$email string
리턴 string

entities() 공개 메소드

The encoding in $encoding will be used
public entities ( string $value ) : string
$value string
리턴 string

getUrlGenerator() 공개 메소드

public getUrlGenerator ( )

image() 공개 메소드

Generate an HTML image element.
public image ( string $url, string $alt = null, array $attributes = [] ) : string
$url string
$alt string
$attributes array
리턴 string

macro() 공개 메소드

Register a new macro with the HTML class
public macro ( string $name, Callable $callback ) : void
$name string Its name
$callback Callable A closure to use
리턴 void

mailto() 공개 메소드

The E-Mail address will be obfuscated to protect it from spam bots.
public mailto ( string $email, string $title = null, array $attributes = [] ) : string
$email string
$title string
$attributes array
리턴 string

obfuscate() 보호된 메소드

Obfuscate a string to prevent spam-bots from sniffing it
protected obfuscate ( string $value ) : string
$value string
리턴 string

ol() 공개 메소드

Generate an ordered list of items.
public ol ( array $list, array $attributes = [] ) : string
$list array
$attributes array
리턴 string

route() 공개 메소드

An array of parameters may be specified to fill in URI segment wildcards.
public route ( string $name, string $title = null, array $parameters = [], array $attributes = [], $absolute = true ) : string
$name string
$title string
$parameters array
$attributes array
리턴 string

script() 공개 메소드

Generate a link to a JS file
public script ( string $url, array $attributes = [] ) : string
$url string
$attributes array
리턴 string

script_tag() 공개 메소드

Generate a script tag with embed javascript
public script_tag ( string $script, array $attributes = [] ) : string
$script string
$attributes array
리턴 string

secure() 공개 메소드

Generate a HTTPS HTML link
public secure ( string $url, string $title = null, $parameters = [], array $attributes = [] ) : string
$url string
$title string
$attributes array
리턴 string

secureAsset() 공개 메소드

Generate a HTTPS HTML link to an asset
public secureAsset ( string $url, string $title = null, array $attributes = [] ) : string
$url string
$title string
$attributes array
리턴 string

span() 공개 메소드

Generate a HTML span
public span ( string $value, array $attributes = [] ) : string
$value string
$attributes array
리턴 string

specialchars() 공개 메소드

The encoding in $encoding will be used
public specialchars ( string $value ) : string
$value string
리턴 string

style() 공개 메소드

If no media type is selected, "all" will be used
public style ( string $url, array $attributes = [] ) : string
$url string
$attributes array
리턴 string

to() 공개 메소드

Generate a HTML link
public to ( string $url, string $title = null, array $attributes = [], $parameters = [], boolean $https = null ) : string
$url string
$title string
$attributes array
$https boolean
리턴 string

ul() 공개 메소드

Generate an un-ordered list of items.
public ul ( array $list, array $attributes = [] ) : string
$list array
$attributes array
리턴 string

wrapHTMLTag() 공개 메소드

Wraps opening and closing HTML tags around the given input.
public wrapHTMLTag ( string $value, string $tag ) : string
$value string
$tag string
리턴 string

프로퍼티 상세

$encoding 보호되어 있는 프로퍼티

The encoding to use
protected string $encoding
리턴 string

$macros 보호되어 있는 프로퍼티

Custom macros registered by the user
protected array $macros
리턴 array

$url 보호되어 있는 프로퍼티

The url generator instance
protected UrlGenerator,Illuminate\Routing $url
리턴 Illuminate\Routing\UrlGenerator