PHP 클래스 Collective\Html\HtmlBuilder

상속: use trait Illuminate\Support\Traits\Macroable, use trait Collective\Html\Componentable
파일 보기 프로젝트 열기: laravelcollective/html 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$url Illuminate\Contracts\Routing\UrlGenerator The URL generator instance.
$view Illuminate\Contracts\View\Factory The View Factory instance.

공개 메소드들

메소드 설명
__call ( string $method, array $parameters ) : Illuminate\Contracts\View\View | mixed Dynamically handle calls to the class.
__construct ( Illuminate\Contracts\Routing\UrlGenerator $url = null, Illuminate\Contracts\View\Factory $view ) Create a new HTML builder instance.
attributes ( array $attributes ) : string Build an HTML attribute string from an array.
componentCall ( )
decode ( string $value ) : string Convert entities to HTML characters.
dl ( array $list, array $attributes = [] ) : Illuminate\Support\HtmlString Generate a description list of items.
email ( string $email ) : string Obfuscate an e-mail address to prevent spam-bots from sniffing it.
entities ( string $value ) : string Convert an HTML string to entities.
favicon ( string $url, array $attributes = [], boolean $secure = null ) : Illuminate\Support\HtmlString Generate a link to a Favicon file.
image ( string $url, string $alt = null, array $attributes = [], boolean $secure = null ) : Illuminate\Support\HtmlString Generate an HTML image element.
link ( string $url, string $title = null, array $attributes = [], boolean $secure = null, boolean $escape = true ) : Illuminate\Support\HtmlString Generate a HTML link.
linkAction ( string $action, string $title = null, array $parameters = [], array $attributes = [] ) : Illuminate\Support\HtmlString Generate a HTML link to a controller action.
linkAsset ( string $url, string $title = null, array $attributes = [], boolean $secure = null ) : Illuminate\Support\HtmlString Generate a HTML link to an asset.
linkRoute ( string $name, string $title = null, array $parameters = [], array $attributes = [] ) : Illuminate\Support\HtmlString Generate a HTML link to a named route.
linkSecureAsset ( string $url, string $title = null, array $attributes = [] ) : Illuminate\Support\HtmlString Generate a HTTPS HTML link to an asset.
macroCall ( )
mailto ( string $email, string $title = null, array $attributes = [], boolean $escape = true ) : Illuminate\Support\HtmlString Generate a HTML link to an email address.
meta ( string $name, string $content, array $attributes = [] ) : Illuminate\Support\HtmlString Generate a meta tag.
nbsp ( integer $num = 1 ) : string Generates non-breaking space entities based on number supplied.
obfuscate ( string $value ) : string Obfuscate a string to prevent spam-bots from sniffing it.
ol ( array $list, array $attributes = [] ) : Illuminate\Support\HtmlString | string Generate an ordered list of items.
script ( string $url, array $attributes = [], boolean $secure = null ) : Illuminate\Support\HtmlString Generate a link to a JavaScript file.
secureLink ( string $url, string $title = null, array $attributes = [] ) : Illuminate\Support\HtmlString Generate a HTTPS HTML link.
style ( string $url, array $attributes = [], boolean $secure = null ) : Illuminate\Support\HtmlString Generate a link to a CSS file.
tag ( string $tag, mixed $content, array $attributes = [] ) : Illuminate\Support\HtmlString Generate an html tag.
ul ( array $list, array $attributes = [] ) : Illuminate\Support\HtmlString | string Generate an un-ordered list of items.

보호된 메소드들

메소드 설명
attributeElement ( string $key, string $value ) : string Build a single attribute element.
listing ( string $type, array $list, array $attributes = [] ) : Illuminate\Support\HtmlString | string Create a listing HTML element.
listingElement ( mixed $key, string $type, mixed $value ) : string Create the HTML for a listing element.
nestedListing ( mixed $key, string $type, mixed $value ) : string Create the HTML for a nested listing attribute.
toHtmlString ( $html ) : Illuminate\Support\HtmlString Transform the string to an Html serializable object

메소드 상세

__call() 공개 메소드

Dynamically handle calls to the class.
public __call ( string $method, array $parameters ) : Illuminate\Contracts\View\View | mixed
$method string
$parameters array
리턴 Illuminate\Contracts\View\View | mixed

__construct() 공개 메소드

Create a new HTML builder instance.
public __construct ( Illuminate\Contracts\Routing\UrlGenerator $url = null, Illuminate\Contracts\View\Factory $view )
$url Illuminate\Contracts\Routing\UrlGenerator
$view Illuminate\Contracts\View\Factory

attributeElement() 보호된 메소드

Build a single attribute element.
protected attributeElement ( string $key, string $value ) : string
$key string
$value string
리턴 string

attributes() 공개 메소드

Build an HTML attribute string from an array.
public attributes ( array $attributes ) : string
$attributes array
리턴 string

componentCall() 공개 메소드

public componentCall ( )

decode() 공개 메소드

Convert entities to HTML characters.
public decode ( string $value ) : string
$value string
리턴 string

dl() 공개 메소드

Generate a description list of items.
public dl ( array $list, array $attributes = [] ) : Illuminate\Support\HtmlString
$list array
$attributes array
리턴 Illuminate\Support\HtmlString

email() 공개 메소드

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

entities() 공개 메소드

Convert an HTML string to entities.
public entities ( string $value ) : string
$value string
리턴 string

favicon() 공개 메소드

Generate a link to a Favicon file.
public favicon ( string $url, array $attributes = [], boolean $secure = null ) : Illuminate\Support\HtmlString
$url string
$attributes array
$secure boolean
리턴 Illuminate\Support\HtmlString

image() 공개 메소드

Generate an HTML image element.
public image ( string $url, string $alt = null, array $attributes = [], boolean $secure = null ) : Illuminate\Support\HtmlString
$url string
$alt string
$attributes array
$secure boolean
리턴 Illuminate\Support\HtmlString

linkAction() 공개 메소드

Generate a HTML link to a controller action.
public linkAction ( string $action, string $title = null, array $parameters = [], array $attributes = [] ) : Illuminate\Support\HtmlString
$action string
$title string
$parameters array
$attributes array
리턴 Illuminate\Support\HtmlString

linkAsset() 공개 메소드

Generate a HTML link to an asset.
public linkAsset ( string $url, string $title = null, array $attributes = [], boolean $secure = null ) : Illuminate\Support\HtmlString
$url string
$title string
$attributes array
$secure boolean
리턴 Illuminate\Support\HtmlString

linkRoute() 공개 메소드

Generate a HTML link to a named route.
public linkRoute ( string $name, string $title = null, array $parameters = [], array $attributes = [] ) : Illuminate\Support\HtmlString
$name string
$title string
$parameters array
$attributes array
리턴 Illuminate\Support\HtmlString

linkSecureAsset() 공개 메소드

Generate a HTTPS HTML link to an asset.
public linkSecureAsset ( string $url, string $title = null, array $attributes = [] ) : Illuminate\Support\HtmlString
$url string
$title string
$attributes array
리턴 Illuminate\Support\HtmlString

listing() 보호된 메소드

Create a listing HTML element.
protected listing ( string $type, array $list, array $attributes = [] ) : Illuminate\Support\HtmlString | string
$type string
$list array
$attributes array
리턴 Illuminate\Support\HtmlString | string

listingElement() 보호된 메소드

Create the HTML for a listing element.
protected listingElement ( mixed $key, string $type, mixed $value ) : string
$key mixed
$type string
$value mixed
리턴 string

macroCall() 공개 메소드

public macroCall ( )

mailto() 공개 메소드

Generate a HTML link to an email address.
public mailto ( string $email, string $title = null, array $attributes = [], boolean $escape = true ) : Illuminate\Support\HtmlString
$email string
$title string
$attributes array
$escape boolean
리턴 Illuminate\Support\HtmlString

meta() 공개 메소드

Generate a meta tag.
public meta ( string $name, string $content, array $attributes = [] ) : Illuminate\Support\HtmlString
$name string
$content string
$attributes array
리턴 Illuminate\Support\HtmlString

nbsp() 공개 메소드

Generates non-breaking space entities based on number supplied.
public nbsp ( integer $num = 1 ) : string
$num integer
리턴 string

nestedListing() 보호된 메소드

Create the HTML for a nested listing attribute.
protected nestedListing ( mixed $key, string $type, mixed $value ) : string
$key mixed
$type string
$value mixed
리턴 string

obfuscate() 공개 메소드

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

ol() 공개 메소드

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

script() 공개 메소드

Generate a link to a JavaScript file.
public script ( string $url, array $attributes = [], boolean $secure = null ) : Illuminate\Support\HtmlString
$url string
$attributes array
$secure boolean
리턴 Illuminate\Support\HtmlString

style() 공개 메소드

Generate a link to a CSS file.
public style ( string $url, array $attributes = [], boolean $secure = null ) : Illuminate\Support\HtmlString
$url string
$attributes array
$secure boolean
리턴 Illuminate\Support\HtmlString

tag() 공개 메소드

Generate an html tag.
public tag ( string $tag, mixed $content, array $attributes = [] ) : Illuminate\Support\HtmlString
$tag string
$content mixed
$attributes array
리턴 Illuminate\Support\HtmlString

toHtmlString() 보호된 메소드

Transform the string to an Html serializable object
protected toHtmlString ( $html ) : Illuminate\Support\HtmlString
$html
리턴 Illuminate\Support\HtmlString

ul() 공개 메소드

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

프로퍼티 상세

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

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

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

The View Factory instance.
protected Factory,Illuminate\Contracts\View $view
리턴 Illuminate\Contracts\View\Factory