$path) { $manifest = realpath ($path) . '/manifest.php'; if (file_exists ($manifest)) { require_once $manifest; $classname = str_replace (' ', '_', ucwords (preg_replace ('/\W/', ' ', strtolower ('manifest ' . $name)))); if (class_exists ($classname, false)) { if (in_array ('Addon_Manifest', class_parents ($classname))) { $manifest = new $classname (); $item = call_user_func_array(array ($manifest, $method_name), $arguments); if (is_array ($item)) { $result = array_merge ($result, $item); } else { $result [] = $item; } } } } } } return $result; } function getAdminTopLevelMenus () { return array (); } function onBeforeFrontendMethod () { } function onAfterFrontendMethod ($view) { } function onPeriodicUpdate ($logger) { } }