Login | Register
My pages Projects Community openCollabNet

Discussions > dev > Re: [propel-dev] roadmap

propel
Discussion topic

Back to topic list

Re: [propel-dev] roadmap

Reply

Author hlellelid
Full name Hans Lellelid
Date 2006-03-28 09:39:47 PST
Message David Z├╝lke wrote:
> Am 28.03.2006 um 19:24 schrieb Hans Lellelid:
>> Yeah, the problem doesn't really apply to __call(), you're right. More
>> for __get()/__set():
>>
>> Current API:
>>
>> print "Date is " . $obj->getDateValue("Y-m-d");
>>
>> Desired API (as I understand it):
>>
>> print "Date is " . date("Y-m-d", $obj->dateValue);
>
> I don't think we should use accessors. Let's stick to getDateValue().
> We'll have one __call() method that handles getters and setters for all
> fields. Makes the generated classes a lot slimmer ;) Also, we actually
> _have_ to do it this way because you couldn't implement custom stuff in
> the stubs otherwise.
>

That's a good point. I guess overriding __get / __set would be
extremely cumbersome. Using __call() would definitely help keep things
slim, though, true.

Hans

« Previous message in topic | 7 of 14 | Next message in topic »

Messages

Show all messages in topic

RE: [propel-dev] roadmap Soenke Ruempler <ruempler at topconcepts dot com> Soenke Ruempler <ruempler at topconcepts dot com> 2006-03-28 07:22:41 PST
     Re: [propel-dev] roadmap hlellelid Hans Lellelid 2006-03-28 07:28:05 PST
         Re: [propel-dev] roadmap =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com> =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com> 2006-03-28 08:15:03 PST
             Re: [propel-dev] roadmap =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com> =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com> 2006-03-28 08:18:18 PST
                 Re: [propel-dev] roadmap hlellelid Hans Lellelid 2006-03-28 09:24:14 PST
                     Re: [propel-dev] roadmap =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com> =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com> 2006-03-28 09:35:18 PST
                         Re: [propel-dev] roadmap hlellelid Hans Lellelid 2006-03-28 09:39:47 PST
             Re: [propel-dev] roadmap hlellelid Hans Lellelid 2006-03-28 09:25:10 PST
         Re: [propel-dev] roadmap Alan Pinstein <apinstein at mac dot com> Alan Pinstein <apinstein at mac dot com> 2006-03-28 12:29:31 PST
             Re: [propel-dev] roadmap hlellelid Hans Lellelid 2006-03-28 12:43:57 PST
                 Re: [propel-dev] roadmap =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com> =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com> 2006-03-28 16:07:17 PST
             Re: [propel-dev] roadmap Oliver Schonrock <oliver dot schonrock at realtsp dot com> Oliver Schonrock <oliver dot schonrock at realtsp dot com> 2006-03-28 15:09:45 PST
                 Re: [propel-dev] roadmap Cameron Brunner <cameron dot brunner at gmail dot com> Cameron Brunner <cameron dot brunner at gmail dot com> 2006-03-28 15:47:22 PST
             Re: [propel-dev] roadmap =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com> =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com> 2006-03-28 16:03:39 PST
Messages per page: