Re: dataobject model class
| From: | Jerry | Date: | Thu, 24 Jun 2004 07:32:07 +0000 |
| Subject: | Re: dataobject model class | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-13298@lists.php.net to get a copy of this message | ||
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>