OpenSencillo  2016.106
Long live the simplicity of PHP
 All Data Structures Namespaces Files Functions Pages
structgen Class Reference
Inheritance diagram for structgen:
defaultStructures

Public Member Functions

 __construct ($name, $mysqlObject)
 
 createStructure ($name='structgen')
 
 uniStore ($name='uniStructgen')
 
 switchStructure ($name)
 
 add ($item, $base=0, $subnav=null, $perm=1000, $link=null, $priority=null)
 
 listStructure ()
 
 listBase ($base)
 

Protected Attributes

 $data =array()
 
 $sql
 
 $baseCtr
 
 $subCtr
 
 $name
 

Detailed Description

Definition at line 11 of file structure.generator.structgen.php.

Member Function Documentation

add (   $item,
  $base = 0,
  $subnav = null,
  $perm = 1000,
  $link = null,
  $priority = null 
)

Add item / record to structure

Parameters
$itemstring name of item
$baseint id of parent (root base is 0)
$subnavint id of new item
$permint permission for view
$linkstring full URL
$priorityint priority level

Definition at line 123 of file structure.generator.structgen.php.

createStructure (   $name = 'structgen')

Create structure

Parameters
$namestring

Definition at line 28 of file structure.generator.structgen.php.

listBase (   $base)

List all structure information for one base (for one level)

Parameters
$baseint
Returns
array

Definition at line 183 of file structure.generator.structgen.php.

listStructure ( )

List structure

Parameters
$rootbaseint
$maxbaseint

Definition at line 159 of file structure.generator.structgen.php.

switchStructure (   $name)

Switch to other structure by name

Parameters
$namestring

Definition at line 109 of file structure.generator.structgen.php.

uniStore (   $name = 'uniStructgen')

Create unistore list structure

Parameters
$namestring

Definition at line 64 of file structure.generator.structgen.php.


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