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