On 04/22/2012 02:54 PM, Frank Karlitschek wrote:
On 22.04.2012, at 14:47, Bartek Przybylski<[email protected]> wrote:
Heya!
W dniu 22 kwietnia 2012 14:40 użytkownik Georg Ehrke
<[email protected]> napisał:
Am 22.04.2012 um 14:37 schrieb Bartek Przybylski:
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
I would appreciate this too.
Sure. Something to consider. I personally don´t like the syntax but that´s not
important. :-)
I'd also go with PHP namespaces.
Obviously this will require more amount of work but might make
owncloud true OOD and OOP product.
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
_______________________________________________
Owncloud mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/owncloud
_______________________________________________
Owncloud mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/owncloud
_______________________________________________
Owncloud mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/owncloud
_______________________________________________
Owncloud mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/owncloud