<?phpOC_Util::checkAdminUser();OCP\JSON::callCheck();$app=$_GET['app'];//load the one app and see what it adds to the navigationOC_App::loadApp($app);$navigation=OC_App::getNavigation();$navIds=array();foreach($navigationas$nav){$navIds[]=$nav['id'];}OCP\JSON::success(array('nav_ids'=>array_values($navIds),'nav_entries'=>$navigation));