[
https://issues.apache.org/jira/browse/SHINDIG-321?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12601497#action_12601497
]
Kevin Brown commented on SHINDIG-321:
-------------------------------------
Java has packages that have to be imported. Most of the time, you can safely
run multiple classes with the same name alongside each other without issue. In
the very rare case that you have to use two identically named classes within
the same class, you simply fully qualify the package.
I usually recommend that PHP packages prefix all of their functions and classes
with a common package name, similar to what Zend framework does.
> NameSpace collition in PHP Classes
> ----------------------------------
>
> Key: SHINDIG-321
> URL: https://issues.apache.org/jira/browse/SHINDIG-321
> Project: Shindig
> Issue Type: Improvement
> Components: Common Components (PHP), Gadget Rendering Server (PHP)
> Reporter: bruno rovagnati
> Attachments: namespace_email.patch,
> namespacer_cache_setpref_setprefs.patch
>
>
> Some classes are having conflicting names such as Cache, Name, Email, Person
> etc... (mainly src/socialdata/opensocial/model/*)
> I suggest to move those class name to a Shindig_Cache, Shindig_Name, etc.
> (Zend-like namespace convention)
> i'll start adding patched to these classes that are conflicting while
> implementing shindig
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.