phpgroupware-developers
[Top][All Lists]
Advanced

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

Re: [phpGroupWare-developers] datetime class and PHP 5.2


From: Dave Hall
Subject: Re: [phpGroupWare-developers] datetime class and PHP 5.2
Date: Wed, 27 Dec 2006 12:52:01 +1100

On Tue, 2006-12-26 at 19:41 -0600, Chris Weiss wrote:
> On 12/26/06, Dave Hall <address@hidden> wrote:
> > Prefix by app:
> > app/inc/class.blah.inc.php contains a class called "app_blah" which
> > createObject will "auto prepend" the app_ to the class name before
> > instantiating it.  I prefer this option as it will also prevent class
> > name clashes within phpGW.
> >
> 
> this sounds great, with a bit of class_exists()...
> if (class_exists($app.'_'.$class))
> {
>   //new naming
> }
> else
> {
>   //old naming
> }

Sounds like a good transition plan :)  Then we can remove it during the
testing cycle when all apps are ported.

Cheers

Dave
-- 
Dave Hall (aka skwashd)
API Coordinator
phpGroupWare
e address@hidden
w phpgroupware.org
j address@hidden
sip address@hidden
       _            ____                    __        __             
 _ __ | |__  _ __  / ___|_ __ ___  _   _ _ _\ \      / /_ _ _ __ ___ 
| '_ \| '_ \| '_ \| |  _| '__/ _ \| | | | '_ \ \ /\ / / _` | '__/ _ \
| |_) | | | | |_) | |_| | | | (_) | |_| | |_) \ V  V / (_| | | |  __/
| .__/|_| |_| .__/ \____|_|  \___/ \__,_| .__/ \_/\_/ \__,_|_|  \___|
|_|         |_|                         |_|Web based collaboration platform






reply via email to

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