QVCI Library 3.2
 All Classes Namespaces Functions
Public Member Functions | Public Attributes | List of all members
User_nav Class Reference

Public Member Functions

 __construct ()
 
 add_item ($url, $label, $ngrp=0, $pos=null)
 
 draw ()
 

Public Attributes

 $menu = []
 

Detailed Description

Implements the User_nav class, which provides the user navigation menu including login and register links.

Constructor & Destructor Documentation

User_nav::__construct ( )

Constructor, creates the menu structure.

Member Function Documentation

User_nav::add_item (   $url,
  $label,
  $ngrp = 0,
  $pos = null 
)

Add an item to the user-nav menu. There are three groups by default, starting at 0. You can insert an item at the beginning, middle or end of any group.

Parameters
string$url
string$label
number$ngrp
number$pos
User_nav::draw ( )

Draw the user-nav menu.


The documentation for this class was generated from the following file: