return \OC_USER::getUser();
}
+
/**
* @brief makes owncloud aware of this app
* @param $data array with all information
}
-
/**
* register an admin form to be shown
*/
return \OC_App::addNavigationEntry($data);
}
+
/**
* @brief Read app metadata from the info.xml file
* @param string $appid id of the app or the path of the info.xml file
return \OC_App::getAppInfo($appid,$path);
}
+
/**
* register a personal form to be shown
*/
return \OC_App::setActiveNavigationEntry($id);
}
+
/**
* @brief checks whether or not an app is enabled
* @param $app app
return \OC_App::isEnabled( $app );
}
+
+ /**
+ * Check if the app is enabled, redirects to home if not
+ */
+ public static function checkAppEnabled($app){
+ return \OC_Util::checkAppEnabled( $app );
+ }
+
+
/**
* get the last version of the app, either from appinfo/version or from appinfo/info.xml
*/
return \OC_App::getAppVersion( $appid );
}
+
/**
* @param string appid
* @return OC_FilesystemView