Re: cvs: pear /LiveUser/Perm Simple.php /LiveUser/Perm/Storage SQL.php
| From: | Lukas Smith | Date: | Sun, 12 Dec 2004 21:30:41 +0000 |
| Subject: | Re: cvs: pear /LiveUser/Perm Simple.php /LiveUser/Perm/Storage SQL.php | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-35018@lists.php.net to get a copy of this message | ||
Lukas Smith wrote:
lsmith Sun Dec 12 16:25:56 2004 EDTIn LiveUser we have several rather large configuration arrays, that essentially cover the entire db schema. Since we need those arrays in the client as well as the admin classes I have placed them inside static methods of the client. See the code in CVS or the latest commits for details. Now the question is shouldnt I better place them inside a separate script and just place them inside the super global ..? $GLOBALS[_LiveUser]['tables'] = array( .. ); That way I dont need to call a static method to get the array both inside the client and inside the admin. Inside the admin I would also get around including a few lines of code (however in practice its likely that these lines of code will be included already anyways). regards, LukasModified files: /pear/LiveUser/Perm Simple.php /pear/LiveUser/Perm/Storage SQL.php Log:- added new default for config arrays inside static methods so we can fetch them from the admin classes)