cvs: pear /LiveUser/Perm Storage.php

From: Date: Tue, 07 Jun 2005 14:40:01 +0000
Subject: cvs: pear /LiveUser/Perm Storage.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-32407@lists.php.net to get a copy of this message
lsmith Tue Jun 7 10:40:01 2005 EDT Modified files: /pear/LiveUser/Perm Storage.php Log: - moved generic code from SQL.php http://cvs.php.net/diff.php/pear/LiveUser/Perm/Storage.php?r1=1.7&r2=1.8&ty=u Index: pear/LiveUser/Perm/Storage.php diff -u pear/LiveUser/Perm/Storage.php:1.7 pear/LiveUser/Perm/Storage.php:1.8 --- pear/LiveUser/Perm/Storage.php:1.7 Wed Apr 6 13:16:40 2005 +++ pear/LiveUser/Perm/Storage.php Tue Jun 7 10:40:01 2005 @@ -40,7 +40,7 @@ * @author Bjoern Kraus <krausbn@php.net> * @copyright 2002-2005 Markus Wolff * @license http://www.gnu.org/licenses/lgpl.txt - * @version CVS: $Id: Storage.php,v 1.7 2005/04/06 17:16:40 lsmith Exp $ + * @version CVS: $Id: Storage.php,v 1.8 2005/06/07 14:40:01 lsmith Exp $ * @link http://pear.php.net/LiveUser */ @@ -59,6 +59,27 @@ class LiveUser_Perm_Storage { /** + * + * @access public + * @var array + */ + var $tables = array(); + + /** + * + * @access public + * @var array + */ + var $fields = array(); + + /** + * + * @access public + * @var array + */ + var $alias = array(); + + /** * Constructor * * @access protected @@ -90,6 +111,23 @@ } } + require_once 'LiveUser/Perm/Storage/Globals.php'; + if (empty($this->tables)) { + $this->tables = $GLOBALS['_LiveUser']['perm']['tables']; + } else { + $this->tables = LiveUser::arrayMergeClobber($GLOBALS['_LiveUser']['perm']['tables'], $this->tables); + } + if (empty($this->fields)) { + $this->fields = $GLOBALS['_LiveUser']['perm']['fields']; + } else { + $this->fields = LiveUser::arrayMergeClobber($GLOBALS['_LiveUser']['perm']['fields'], $this->fields); + } + if (empty($this->alias)) { + $this->alias = $GLOBALS['_LiveUser']['perm']['alias']; + } else { + $this->alias = LiveUser::arrayMergeClobber($GLOBALS['_LiveUser']['perm']['alias'], $this->alias); + } + return true; }

« previous php.pear.cvs (#32407) next »