Phpxforms documentation

AdminMenu
in package

Administration menu

Tags
author

DaVee

version
0.87dev
license

Lesser General Public License 2.1 or later; see http://www.gnu.org/licenses/lgpl-2.1.html

Table of Contents

Properties

$db  : SQL
$list  : array<int, array<string, mixed>>|null
$nav  : AdminNavigation
$sections  : Sections|null
$tree  : array<int, array<string|int, int>>
$user  : UserSession

Methods

__construct()  : mixed
render()  : void
Prints menu
isVisible()  : bool
Is item visible in menu
load()  : void
Load items from menu
parseCustomLeaf()  : array<string|int, array<string, string>>
Add custom items into menu
renderBranch()  : void
Print item in menu

Properties

$list

protected array<int, array<string, mixed>>|null $list = null

$tree

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

Methods

isVisible()

Is item visible in menu

protected isVisible(int $id[, bool $root = true ]) : bool
Parameters
$id : int
$root : bool = true
Return values
bool

load()

Load items from menu

protected load() : void

parseCustomLeaf()

Add custom items into menu

protected parseCustomLeaf(string $file, array<string, mixed> $custom) : array<string|int, array<string, string>>
Parameters
$file : string
$custom : array<string, mixed>
Return values
array<string|int, array<string, string>>

renderBranch()

Print item in menu

protected renderBranch(int $id) : void
Parameters
$id : int

        
On this page

Search results