Open Sencillo  2015.107
Long live the simplicity of PHP
 All Data Structures Namespaces Functions Pages
menuGen Class Reference

Public Member Functions

 __construct ($mysqlObject, $protocol, $page, $language, $perm)
 
 addItemToMenu ($cBase, $cSubBase, $priority, $perm, $lang, $cName, $cHref, $cTitle, $cImage, $cImageAlt)
 
 createMenu ($name)
 
 switchMenu ($name)
 
 generateMenu ($subcategory, $level)
 
 generateMenuLevel ($level, $limit, $page)
 
 generateMenuAllLevels ($page)
 

Data Fields

 $maxLevel = array()
 

Protected Attributes

 $mysqlObject
 
 $href
 
 $name
 
 $protocol
 
 $page
 
 $language
 
 $perm
 
 $maxLevelQuery
 

Detailed Description

Definition at line 12 of file menu.generator.menugen.php.

Member Function Documentation

addItemToMenu (   $cBase,
  $cSubBase,
  $priority,
  $perm,
  $lang,
  $cName,
  $cHref,
  $cTitle,
  $cImage,
  $cImageAlt 
)

Add item to menu

Parameters
intbase
intsubbase
intpriority level
intperm level
intlanguage id
stringname
stringhref relative path as my/own/url
stringtitle text
stringimage full path
stringimage text alternative

Definition at line 53 of file menu.generator.menugen.php.

createMenu (   $name)

Create menu structure and add new table to database

Parameters
stringtable name

Definition at line 78 of file menu.generator.menugen.php.

generateMenuAllLevels (   $page)

Generates show/hide menu levels 1-5 $menuGen->generateMenuAllLevels(PAGE);

Parameters
string

Definition at line 631 of file menu.generator.menugen.php.

switchMenu (   $name)

Switch menu by table name

Parameters
stringtable name

Definition at line 103 of file menu.generator.menugen.php.


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