Re: DB_DataObjects, trying to no make class files for certain tables

From: Date: Thu, 02 Dec 2004 22:21:57 +0000
Subject: Re: DB_DataObjects, trying to no make class files for certain tables
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-15976@lists.php.net to get a copy of this message
"Mike Zornek" <listguy@mikezornek.com> wrote in message news:BDD4C49E.60854%listguy@mikezornek.com... > Can I have it so createTables.php doesn't make class files for certain > tables, ie: ones that begin with aprefixlikeibf_. > > The example above comes from a situation where my web app needs to sit in > the same db as some forum software. > > ~ Mike Hi Mike, you can define the option 'generator_exclude_regex'. This string will be checked with preg_match. The following should do the trick for you: options = array('generator_exclude_regex' = '/aprefixlikeibf_/'); There is also 'generator_include_regex' if you only wnat to recognize certain tables. Hope this helps. Best regards, Torsten Roehr

« previous php.pear.general (#15976) next »