Свойство | Тип | Описание | |
---|---|---|---|
$attributes | array | Link attributes | |
$isActive | boolean | Flag for active state |
Свойство | Тип | Описание | |
---|---|---|---|
$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 |
public __construct ( array $path = [] ) : void | ||
$path | array | |
Результат | void |
public active ( ) : Lavary\Menu\Link | ||
Результат | Lavary\Menu\Link |
public href ( $href ) : Lavary\Menu\Link | ||
Результат | Lavary\Menu\Link |
public secure ( ) : Lavary\Menu\Item | ||
Результат | Lavary\Menu\Item |