PHP Class Lavary\Menu\Link

Afficher le fichier Open project: lavary/laravel-menu

Méthodes publiques

Свойство Type Description
$attributes array Link attributes
$isActive boolean Flag for active state

Protected Properties

Свойство Type Description
$href string Explicit href for the link
$path array Path Information

Méthodes publiques

Méthode Description
__construct ( array $path = [] ) : void Creates a hyper link instance
__get ( $prop ) : void Check for a method of the same name if the attribute doesn't exist.
active ( ) : Lavary\Menu\Link Make the anchor active
attr ( ) : string | Lavary\Menu\Link Add attributes to the link
href ( $href ) : Lavary\Menu\Link Set Anchor's href property
secure ( ) : Lavary\Menu\Item Make the url secure

Method Details

__construct() public méthode

Creates a hyper link instance
public __construct ( array $path = [] ) : void
$path array
Résultat void

__get() public méthode

Check for a method of the same name if the attribute doesn't exist.
public __get ( $prop ) : void
Résultat void

active() public méthode

Make the anchor active
public active ( ) : Lavary\Menu\Link
Résultat Lavary\Menu\Link

attr() public méthode

Add attributes to the link
public attr ( ) : string | Lavary\Menu\Link
Résultat string | Lavary\Menu\Link

href() public méthode

Set Anchor's href property
public href ( $href ) : Lavary\Menu\Link
Résultat Lavary\Menu\Link

secure() public méthode

Make the url secure
public secure ( ) : Lavary\Menu\Item
Résultat Lavary\Menu\Item

Property Details

$attributes public_oe property

Link attributes
public array $attributes
Résultat array

$href protected_oe property

Explicit href for the link
protected string $href
Résultat string

$isActive public_oe property

Flag for active state
public bool $isActive
Résultat boolean

$path protected_oe property

Path Information
protected array $path
Résultat array