@@ -45,63 +45,63 @@ |
||
| 45 | 45 | class App { |
| 46 | 46 | |
| 47 | 47 | |
| 48 | - /** |
|
| 49 | - * Register a Configuration Screen that should appear in the personal settings section. |
|
| 50 | - * @param string $app appid |
|
| 51 | - * @param string $page page to be included |
|
| 52 | - * @return void |
|
| 53 | - * @since 4.0.0 |
|
| 54 | - * @deprecated 14.0.0 Use settings section in appinfo.xml to register personal admin sections |
|
| 55 | - */ |
|
| 56 | - public static function registerPersonal( $app, $page ) { |
|
| 57 | - \OC_App::registerPersonal( $app, $page ); |
|
| 58 | - } |
|
| 48 | + /** |
|
| 49 | + * Register a Configuration Screen that should appear in the personal settings section. |
|
| 50 | + * @param string $app appid |
|
| 51 | + * @param string $page page to be included |
|
| 52 | + * @return void |
|
| 53 | + * @since 4.0.0 |
|
| 54 | + * @deprecated 14.0.0 Use settings section in appinfo.xml to register personal admin sections |
|
| 55 | + */ |
|
| 56 | + public static function registerPersonal( $app, $page ) { |
|
| 57 | + \OC_App::registerPersonal( $app, $page ); |
|
| 58 | + } |
|
| 59 | 59 | |
| 60 | - /** |
|
| 61 | - * Register a Configuration Screen that should appear in the Admin section. |
|
| 62 | - * @param string $app string appid |
|
| 63 | - * @param string $page string page to be included |
|
| 64 | - * @return void |
|
| 65 | - * @since 4.0.0 |
|
| 66 | - * @deprecated 14.0.0 Use settings section in appinfo.xml to register admin sections |
|
| 67 | - */ |
|
| 68 | - public static function registerAdmin( $app, $page ) { |
|
| 69 | - \OC_App::registerAdmin( $app, $page ); |
|
| 70 | - } |
|
| 60 | + /** |
|
| 61 | + * Register a Configuration Screen that should appear in the Admin section. |
|
| 62 | + * @param string $app string appid |
|
| 63 | + * @param string $page string page to be included |
|
| 64 | + * @return void |
|
| 65 | + * @since 4.0.0 |
|
| 66 | + * @deprecated 14.0.0 Use settings section in appinfo.xml to register admin sections |
|
| 67 | + */ |
|
| 68 | + public static function registerAdmin( $app, $page ) { |
|
| 69 | + \OC_App::registerAdmin( $app, $page ); |
|
| 70 | + } |
|
| 71 | 71 | |
| 72 | - /** |
|
| 73 | - * Read app metadata from the info.xml file |
|
| 74 | - * @param string $app id of the app or the path of the info.xml file |
|
| 75 | - * @param boolean $path (optional) |
|
| 76 | - * @return array|null |
|
| 77 | - * @deprecated 14.0.0 ise \OC::$server->getAppManager()->getAppInfo($appId) |
|
| 78 | - * @since 4.0.0 |
|
| 79 | - */ |
|
| 80 | - public static function getAppInfo( $app, $path=false ) { |
|
| 81 | - return \OC_App::getAppInfo( $app, $path); |
|
| 82 | - } |
|
| 72 | + /** |
|
| 73 | + * Read app metadata from the info.xml file |
|
| 74 | + * @param string $app id of the app or the path of the info.xml file |
|
| 75 | + * @param boolean $path (optional) |
|
| 76 | + * @return array|null |
|
| 77 | + * @deprecated 14.0.0 ise \OC::$server->getAppManager()->getAppInfo($appId) |
|
| 78 | + * @since 4.0.0 |
|
| 79 | + */ |
|
| 80 | + public static function getAppInfo( $app, $path=false ) { |
|
| 81 | + return \OC_App::getAppInfo( $app, $path); |
|
| 82 | + } |
|
| 83 | 83 | |
| 84 | - /** |
|
| 85 | - * checks whether or not an app is enabled |
|
| 86 | - * @param string $app |
|
| 87 | - * @return boolean |
|
| 88 | - * |
|
| 89 | - * This function checks whether or not an app is enabled. |
|
| 90 | - * @since 4.0.0 |
|
| 91 | - * @deprecated 13.0.0 use \OC::$server->getAppManager()->isEnabledForUser($appId) |
|
| 92 | - */ |
|
| 93 | - public static function isEnabled( $app ) { |
|
| 94 | - return \OC::$server->getAppManager()->isEnabledForUser( $app ); |
|
| 95 | - } |
|
| 84 | + /** |
|
| 85 | + * checks whether or not an app is enabled |
|
| 86 | + * @param string $app |
|
| 87 | + * @return boolean |
|
| 88 | + * |
|
| 89 | + * This function checks whether or not an app is enabled. |
|
| 90 | + * @since 4.0.0 |
|
| 91 | + * @deprecated 13.0.0 use \OC::$server->getAppManager()->isEnabledForUser($appId) |
|
| 92 | + */ |
|
| 93 | + public static function isEnabled( $app ) { |
|
| 94 | + return \OC::$server->getAppManager()->isEnabledForUser( $app ); |
|
| 95 | + } |
|
| 96 | 96 | |
| 97 | - /** |
|
| 98 | - * Get the last version of the app from appinfo/info.xml |
|
| 99 | - * @param string $app |
|
| 100 | - * @return string |
|
| 101 | - * @since 4.0.0 |
|
| 102 | - * @deprecated 14.0.0 use \OC::$server->getAppManager()->getAppVersion($appId) |
|
| 103 | - */ |
|
| 104 | - public static function getAppVersion( $app ) { |
|
| 105 | - return \OC::$server->getAppManager()->getAppVersion($app); |
|
| 106 | - } |
|
| 97 | + /** |
|
| 98 | + * Get the last version of the app from appinfo/info.xml |
|
| 99 | + * @param string $app |
|
| 100 | + * @return string |
|
| 101 | + * @since 4.0.0 |
|
| 102 | + * @deprecated 14.0.0 use \OC::$server->getAppManager()->getAppVersion($appId) |
|
| 103 | + */ |
|
| 104 | + public static function getAppVersion( $app ) { |
|
| 105 | + return \OC::$server->getAppManager()->getAppVersion($app); |
|
| 106 | + } |
|
| 107 | 107 | } |
@@ -53,8 +53,8 @@ discard block |
||
| 53 | 53 | * @since 4.0.0 |
| 54 | 54 | * @deprecated 14.0.0 Use settings section in appinfo.xml to register personal admin sections |
| 55 | 55 | */ |
| 56 | - public static function registerPersonal( $app, $page ) { |
|
| 57 | - \OC_App::registerPersonal( $app, $page ); |
|
| 56 | + public static function registerPersonal($app, $page) { |
|
| 57 | + \OC_App::registerPersonal($app, $page); |
|
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | /** |
@@ -65,8 +65,8 @@ discard block |
||
| 65 | 65 | * @since 4.0.0 |
| 66 | 66 | * @deprecated 14.0.0 Use settings section in appinfo.xml to register admin sections |
| 67 | 67 | */ |
| 68 | - public static function registerAdmin( $app, $page ) { |
|
| 69 | - \OC_App::registerAdmin( $app, $page ); |
|
| 68 | + public static function registerAdmin($app, $page) { |
|
| 69 | + \OC_App::registerAdmin($app, $page); |
|
| 70 | 70 | } |
| 71 | 71 | |
| 72 | 72 | /** |
@@ -77,8 +77,8 @@ discard block |
||
| 77 | 77 | * @deprecated 14.0.0 ise \OC::$server->getAppManager()->getAppInfo($appId) |
| 78 | 78 | * @since 4.0.0 |
| 79 | 79 | */ |
| 80 | - public static function getAppInfo( $app, $path=false ) { |
|
| 81 | - return \OC_App::getAppInfo( $app, $path); |
|
| 80 | + public static function getAppInfo($app, $path = false) { |
|
| 81 | + return \OC_App::getAppInfo($app, $path); |
|
| 82 | 82 | } |
| 83 | 83 | |
| 84 | 84 | /** |
@@ -90,8 +90,8 @@ discard block |
||
| 90 | 90 | * @since 4.0.0 |
| 91 | 91 | * @deprecated 13.0.0 use \OC::$server->getAppManager()->isEnabledForUser($appId) |
| 92 | 92 | */ |
| 93 | - public static function isEnabled( $app ) { |
|
| 94 | - return \OC::$server->getAppManager()->isEnabledForUser( $app ); |
|
| 93 | + public static function isEnabled($app) { |
|
| 94 | + return \OC::$server->getAppManager()->isEnabledForUser($app); |
|
| 95 | 95 | } |
| 96 | 96 | |
| 97 | 97 | /** |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | * @since 4.0.0 |
| 102 | 102 | * @deprecated 14.0.0 use \OC::$server->getAppManager()->getAppVersion($appId) |
| 103 | 103 | */ |
| 104 | - public static function getAppVersion( $app ) { |
|
| 104 | + public static function getAppVersion($app) { |
|
| 105 | 105 | return \OC::$server->getAppManager()->getAppVersion($app); |
| 106 | 106 | } |
| 107 | 107 | } |