diff options
author | Morris Jobke <hey@morrisjobke.de> | 2014-11-24 14:01:49 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2014-11-24 14:01:49 +0100 |
commit | 1b17429c1db8885227436d9f367b930b953e49af (patch) | |
tree | 4eeffc2bf17901a06637480b0ddc3304bd35d9a3 /lib/private/appframework | |
parent | 8782b2237c257cf7117ccc441f86e1036b1d2bf3 (diff) | |
parent | 4302a78b27389cb8f4cdb61cc1f4167e4ecd522a (diff) | |
download | nextcloud-server-1b17429c1db8885227436d9f367b930b953e49af.tar.gz nextcloud-server-1b17429c1db8885227436d9f367b930b953e49af.zip |
Merge pull request #12142 from owncloud/DeprecateOldIAPICalls
Deprecate older API wrappers and calls
Diffstat (limited to 'lib/private/appframework')
-rw-r--r-- | lib/private/appframework/core/api.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/appframework/core/api.php b/lib/private/appframework/core/api.php index 279f4bf97f7..f68c677d106 100644 --- a/lib/private/appframework/core/api.php +++ b/lib/private/appframework/core/api.php @@ -49,6 +49,7 @@ class API implements IApi{ /** * Gets the userid of the current user * @return string the user id of the current user + * @deprecated Use \OC::$server->getUserSession()->getUser()->getUID() */ public function getUserId(){ return \OCP\User::getUser(); @@ -112,6 +113,7 @@ class API implements IApi{ /** * used to return and open a new event source * @return \OCP\IEventSource a new open EventSource class + * @deprecated Use \OC::$server->createEventSource(); */ public function openEventSource(){ return \OC::$server->createEventSource(); @@ -159,6 +161,7 @@ class API implements IApi{ * @param string $className full namespace and class name of the class * @param string $methodName the name of the static method that should be * called + * @deprecated Use \OC::$server->getJobList()->add(); */ public function addRegularTask($className, $methodName) { \OCP\Backgroundjob::addRegularTask($className, $methodName); |