. * */ namespace OCP\AppFramework; use OCP\AppFramework\IApi; use OCP\IContainer; /** * Class IAppContainer * @package OCP\AppFramework * * This container interface provides short cuts for app developers to access predefined app service. */ interface IAppContainer extends IContainer{ /** * used to return the appname of the set application * @return string the name of your application */ function getAppName(); /** * @return IApi */ function getCoreApi(); /** * @return \OCP\IServerContainer */ function getServer(); /** * @param string $middleWare * @return boolean */ function registerMiddleWare($middleWare); /** * @return boolean */ function isLoggedIn(); /** * @return boolean */ function isAdminUser(); /** * @param string $message * @param string $level * @return mixed */ function log($message, $level); }