8 function menu_item($label, $link)
10 $this->label = $label;
22 $this->title = $title;
23 $this->items = array();
26 function add_item($label, $link)
28 $item = new menu_item($label,$link);
29 array_push($this->items,$item);
41 function app_function($label,$link,$access=1)
43 $this->label = $label;
45 $this->access = $access;
56 function module($name,$icon = null)
60 $this->lappfunctions = array();
61 $this->rappfunctions = array();
64 function add_lapp_function($label,$link="",$access=1)
66 $appfunction = new app_function($label,$link,$access);
67 //array_push($this->lappfunctions,$appfunction);
68 $this->lappfunctions[] = $appfunction;
72 function add_rapp_function($label,$link="",$access=1)
74 $appfunction = new app_function($label,$link,$access);
75 //array_push($this->rappfunctions,$appfunction);
76 $this->rappfunctions[] = $appfunction;
90 function application($id, $name, $enabled=true)
94 $this->enables = $enabled;
95 $this->modules = array();
98 function add_module($name, $icon = null)
100 $module = new module($name,$icon);
101 //array_push($this->modules,$module);
102 $this->modules[] = $module;
106 function add_lapp_function($level, $label,$link="",$access=1)
108 $this->modules[$level]->lappfunctions[] = new app_function($label, $link, $access);
111 function add_rapp_function($level, $label,$link="",$access=1)
113 $this->modules[$level]->rappfunctions[] = new app_function($label, $link, $access);