label = translate ($input ['label']); else $this->label = __ ('Submenu'); if (isset ($input ['image']) && trim ($input ['image']) != '') $this->image = $input ['image']; else $this->image = 'submenu.png'; if (array_key_exists ('item', $input) && is_array ($input ['item'])) foreach ($input ['item'] as $trash => $subitem) { if (array_key_exists ('function', $subitem) && trim ($subitem ['function']) != '') $class = 'Menu'. ucfirst ($subitem ['function']); elseif (array_key_exists ('action', $subitem)) $class = 'MenuAction'; else continue; if (!class_exists ($class, FALSE)) continue; $this->submenu [] = new $class ($subitem); } } public function getMenuItem () { ob_start (); ?>