Re: dataobject model class
| From: | Justin Patrin | Date: | Wed, 23 Jun 2004 15:52:24 +0000 |
| Subject: | Re: dataobject model class | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-13271@lists.php.net to get a copy of this message | ||
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>