phpgroupware-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Phpgroupware-developers] class name conflicts


From: Dan Kuykendall
Subject: Re: [Phpgroupware-developers] class name conflicts
Date: Fri, 31 Oct 2003 09:14:16 -0800
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5b) Gecko/20030901 Thunderbird/0.2

This is exactly the reason I used a diff class naming scheme in the new framework.
I used appname_classname, so for example the db class is now  api_db.

Dan

Dirk Schaller wrote:

Hi developers,

I would like to inform you about a problem with class names during my work
on an application integration concept.

The problem is, that some applications consist of the same bo or so class
name.
When the called application include one of these classes, we get a redeclare
class error.

The following applications are problematic:

etemplate
phpgroupware\etemplate\doc\et_notes\inc\class.so.inc.php
phpgroupware\etemplate\doc\et_notes\inc\class.bo.inc.php
phpgroupware\etemplate\doc\et_notes\inc\class.ui.inc.php

bookmarks:
phpgroupware\bookmarks\inc\class.so.inc.php
phpgroupware\bookmarks\inc\class.bo.inc.php
phpgroupware\bookmarks\inc\class.ui.inc.php

notes:
phpgroupware\notes\inc\class.so.inc.php
phpgroupware\notes\inc\class.bo.inc.php
phpgroupware\notes\inc\class.ui.inc.php

sitemgr:
phpgroupware\sitemgr\sitemgr-site\inc\class.ui.inc.php

todo:
phpgroupware\todo\inc\class.so.inc.php
phpgroupware\todo\inc\class.bo.inc.php
phpgroupware\todo\inc\class.ui.inc.php

tts:
phpgroupware\tts\inc\class.bo.inc.php



The best solution is in my opinion to rename the classes and files in
"<className><appName>".
Or are there uniform rules for the class name assignment?

Dirk S


--
*****    Open Source und Linux im professionellen Einsatz    *****
**  komplexe Mailserver, Groupware, Office: sprechen Sie uns an **
Dipl.-Inform. (FH) Dirk Schaller
pro|business AG, EXPO Plaza 1 (Deutscher Pavillon), 30539 Hannover
E-Mail: address@hidden, Tel.: 0511/60066-334, Fax: -355 WWW: http://www.probusiness.de/


_______________________________________________
Phpgroupware-developers mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/phpgroupware-developers





reply via email to

[Prev in Thread] Current Thread [Next in Thread]