PHP Класс Lavary\Menu\Link

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$attributes array Link attributes
$isActive boolean Flag for active state

Защищенные свойства (Protected)

Свойство Тип Описание
$href string Explicit href for the link
$path array Path Information

Открытые методы

Метод Описание
__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

Описание методов

__construct() публичный метод

Creates a hyper link instance
public __construct ( array $path = [] ) : void
$path array
Результат void

__get() публичный метод

Check for a method of the same name if the attribute doesn't exist.
public __get ( $prop ) : void
Результат void

active() публичный метод

Make the anchor active
public active ( ) : Lavary\Menu\Link
Результат Lavary\Menu\Link

attr() публичный метод

Add attributes to the link
public attr ( ) : string | Lavary\Menu\Link
Результат string | Lavary\Menu\Link

href() публичный метод

Set Anchor's href property
public href ( $href ) : Lavary\Menu\Link
Результат Lavary\Menu\Link

secure() публичный метод

Make the url secure
public secure ( ) : Lavary\Menu\Item
Результат Lavary\Menu\Item

Описание свойств

$attributes публичное свойство

Link attributes
public array $attributes
Результат array

$href защищенное свойство

Explicit href for the link
protected string $href
Результат string

$isActive публичное свойство

Flag for active state
public bool $isActive
Результат boolean

$path защищенное свойство

Path Information
protected array $path
Результат array