"Scott Hurring" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Depends ;-)
yea, really depnds, but as you mentioned, having parameterless constructors are more generic, especially when it comes to derive the classes. > > instead (with option #2), you could do something like: > > // Create new document > $d = new Document(); > // populate document > $d->save(); > > and > > // Get existing doc > $d = new Document(); > $d->get(ID); i'd advise method names load() (as for retrieve) and save() (as for store) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php