PHP Class App\Source\Composite\MenuLink

Afficher le fichier Open project: andrey900/slimcms

Méthodes publiques

Свойство Type Description
$attributes array Hyperlink's attributes
$text string Hyperlink's text
$url string Hyperlink's URL

Méthodes publiques

Méthode Description
__construct ( $text, string $url, array $attributes = [] ) : void Creates a hyperlink
append ( $content ) : Link Append content at the end of hyperlink's text
attributes ( $arAttr = null, $value = null ) : Link Add attributes to the hyperlink
get_text ( ) : string Return hyperlink's title
get_url ( ) : string Return hyperlink's URL
prepend ( $content ) : Link Add content at the beginning of hyperlink's text

Method Details

__construct() public méthode

Creates a hyperlink
public __construct ( $text, string $url, array $attributes = [] ) : void
$url string
$attributes array
Résultat void

append() public méthode

Append content at the end of hyperlink's text
public append ( $content ) : Link
Résultat Link

attributes() public méthode

Add attributes to the hyperlink
public attributes ( $arAttr = null, $value = null ) : Link
Résultat Link

get_text() public méthode

Return hyperlink's title
public get_text ( ) : string
Résultat string $title

get_url() public méthode

Return hyperlink's URL
public get_url ( ) : string
Résultat string $url

prepend() public méthode

Add content at the beginning of hyperlink's text
public prepend ( $content ) : Link
Résultat Link

Property Details

$attributes public_oe property

Hyperlink's attributes
public array $attributes
Résultat array

$text public_oe property

Hyperlink's text
public string $text
Résultat string

$url public_oe property

Hyperlink's URL
public string $url
Résultat string