PHP 클래스 Lavary\Menu\Link

파일 보기 프로젝트 열기: lavary/laravel-menu

공개 프로퍼티들

프로퍼티 타입 설명
$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

메소드 상세

__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