Heya!

W dniu 22 kwietnia 2012 14:28 użytkownik Frank Karlitschek
<[email protected]> napisał:
> Hi everybody,
>
> currently all Classes in ownCloud start with OC_
> This leads to a problem if one app wants to use a class name thats already 
> used in the core or in another app.
> A second problem is that we want to build a public api that's stable across 
> different ownCloud version. If apps calls all the internal classes/functions 
> or session variable we run into a problem in the long run.
>
> Because of that I propose this new namespacing schema:
>
> OC_  "ownCloud " Reserver for internal classes and session variables or the 
> core
> OCP_ "ownCloud public" Reserved for the new public API that has to be used by 
> apps exclusively. (Still has to be build)
> OCA_"appidentifier"_  "ownCloud App" Reserver for use in ownCloud apps. The 
> unique identifier has to be in the class name so that it doesn`t clash with 
> other apps.
>
>
> What do you think?
>

Why not use namespacing builded in language ?
http://php.net/manual/en/language.namespaces.php

>
> Cheers
> Frank
>

bartek
 _______________________________________________
> Owncloud mailing list
> [email protected]
> https://mail.kde.org/mailman/listinfo/owncloud
_______________________________________________
Owncloud mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/owncloud

Reply via email to