Re: Re: dataobject model class
| From: | Justin Patrin | Date: | Thu, 24 Jun 2004 07:42:18 +0000 |
| Subject: | Re: Re: dataobject model class | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-13300@lists.php.net to get a copy of this message | ||
All you would have to change is the dataObject class files to have the
specific ones you want to extend your special class.
If this isn't what you need, please supply more information. How many
places do you need to copy to? Why copy it around and not use the same
files? If there are completely different databases, why not symlink?
On Thu, 24 Jun 2004 08:32:07 +0100, Jerry <laurent.ludovic@free.fr> wrote:
>
> thank you for your response ! but I would like avoid to create a extending
> classe because I'll have change all the call !
>
> Thank you
>
> "Justin Patrin" <papercrane@reversefold.com> a écrit dans le message de
> news: 20040623155205.76473.qmail@pb1.pair.com...
> > Jerry wrote:
> >
> > > Good morning,
> > >
> > > I'm working with a tool who manage several web site. Every site has a
> > > directory corresponding to his database. But several web-sites have the
> same
> > > features (like a file manager for exemple) . When I do an update on a
> > > data-object classe, I must copy the same file on every directory.
> > >
> > > site1 :
> > > file.php
> > > filecategory.php
> > > category.php...
> > >
> > > site2 :
> > > file.php
> > > filecategory.php
> > > category.php...
> > >
> > > ....
> > > Does exist a solution for doing update a time ?? but I wouldn't use a
> > > extending classe.
> > >
> > > Thank you for advance !
> >
> > You say you won't use an extending class. Why not? If you made a class
> > that extends DB_DataObject, then make the FileManager classes extend
> > that one, you'd be fine. Even when you use createTables.php again, the
> > special extend should still stay there (unless you specify overwriting
> > it in your DataObject.ini).
> >
> > Other than that, you could write a simple shell script (or PHP CLI
> > script :-) to copy the file to all of the places you need it to be. Or
> > you could write a simple script to run createTables.php on all of the
> > databases.
> >
> > --
> > paperCrane <Justin Patrin>
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
paperCrane --Justin Patrin--