Legend of the Green Dragon

Links

Table of Contents

$links  : array<string|int, mixed>
List of links.
$partialLinks  : array<string|int, mixed>
List of partial links.
addLink()  : $this
Add a link to navigation menu.
blockHideLink()  : $this
Block and hide a link.
blockLink()  : $this
Block a link.
blockPartialLink()  : $this
Block a partial link.
headerHasNavs()  : bool
Check if header has navs to show.
isBlocked()  : bool
Check if link is blocked.
isHided()  : bool
Check if link is hide.
unBlockLink()  : $this
Unblock a link.
unBlockPartialLink()  : $this
Unblock a partial link.
block()  : self
Block a link.

Properties

List of links.

protected array<string|int, mixed> $links = []

List of partial links.

protected array<string|int, mixed> $partialLinks = []

Methods

Add a link to navigation menu.

public addLink(string $link) : $this
Parameters
$link : string
Return values
$this

Block and hide a link.

public blockHideLink(string $link) : $this
Parameters
$link : string
Return values
$this

Block a link.

public blockLink(string $link) : $this
Parameters
$link : string
Return values
$this

Block a partial link.

public blockPartialLink(string $link) : $this
Parameters
$link : string
Return values
$this

headerHasNavs()

Check if header has navs to show.

public headerHasNavs(string $label) : bool
Parameters
$label : string
Return values
bool

isBlocked()

Check if link is blocked.

public isBlocked(string $link) : bool
Parameters
$link : string
Return values
bool

isHided()

Check if link is hide.

public isHided(string $link) : bool
Parameters
$link : string
Return values
bool

Unblock a link.

public unBlockLink(string $link) : $this
Parameters
$link : string
Return values
$this

Unblock a partial link.

public unBlockPartialLink(string $link) : $this
Parameters
$link : string
Return values
$this

block()

Block a link.

protected block(string $link, array<string|int, mixed> $options) : self
Parameters
$link : string
$options : array<string|int, mixed>
Return values
self

Search results