[Owncloud] Backslashes in the code

Thomas Müller thomas.mueller at tmit.eu
Thu May 24 11:42:13 UTC 2012


Backslash is the php namespace separator.

OCP is the public namespace for ownCloud - some day this will be the public API, which app developers are allowed to us.
OC is the private namespace.

Thomas

-- 
Thomas Müller                 E-Mail: thomas.mueller at tmit.eu

Am Donnerstag, dem 24.05.2012 um 13:38 schrieb Dennis Kuypers:
> Can someone please explain why there are so many ocurrences of class names 
> with backlslashes ("P\") in it?
> 
> For example in /apps/external/ajax/setsites.php:
> line 10: OCP\User::checkAdminUser();
> line 22: OCP\Config::setAppValue('external', 'sites', json_encode($sites));
> 
> I can find 166 ocurrences of "OCP\CONFIG" in the current version downloaded 
> from oc.org (downloaded 22.05.2012)
> 
> (This forum post brought me to this subject: 
> http://forum.owncloud.org/viewtopic.php?f=3&t=2573 )



More information about the Owncloud mailing list