PHP Class Keevitaja\Linguist\Services\HtmlBuilder

Mostrar archivo Open project: keevitaja/linguist

Protected Properties

Property Type Description
$linguist object Linguist

Public Methods

Method Description
__construct ( Linguist $linguist )
link ( string $url, string $title, array $attributes = [] ) : string Parse HTML anchor tag
linkTo ( string $uri, string $title, array $attributes = [], array $extra = [], mixed $secure = null, boolean $slug = false ) : string Generate localized HTML anchor tag
linkToRoute ( string $name, string $title, array $parameters = [], array $attributes = [], $extra = [], $secure = null, boolean $slug = false ) : string Generate localized HTML anchor tag to named route

Protected Methods

Method Description
parseAttributes ( array $attributes ) : string Parse anchor attributes

Method Details

__construct() public method

public __construct ( Linguist $linguist )
$linguist Linguist

linkTo() public method

Generate localized HTML anchor tag
public linkTo ( string $uri, string $title, array $attributes = [], array $extra = [], mixed $secure = null, boolean $slug = false ) : string
$uri string
$title string
$attributes array
$extra array
$secure mixed
$slug boolean
return string

linkToRoute() public method

Generate localized HTML anchor tag to named route
public linkToRoute ( string $name, string $title, array $parameters = [], array $attributes = [], $extra = [], $secure = null, boolean $slug = false ) : string
$name string
$title string
$parameters array
$attributes array
$slug boolean
return string

parseAttributes() protected method

Parse anchor attributes
protected parseAttributes ( array $attributes ) : string
$attributes array
return string

Property Details

$linguist protected_oe property

Linguist
protected object $linguist
return object