| [ Index ] |
PHP Cross Reference of Limb3 |
[Summary view] [Print] [Text view]
1 <?php 2 /* 3 * Limb PHP Framework 4 * 5 * @link http://limb-project.com 6 * @copyright Copyright © 2004-2007 BIT(http://bit-creative.com) 7 * @license LGPL http://www.gnu.org/copyleft/lesser.html 8 */ 9 lmb_require('limb/dbal/src/exception/lmbDbException.class.php'); 10 11 /** 12 * abstract class lmbDbInfo. 13 * 14 * @package dbal 15 * @version $Id: lmbDbInfo.class.php 5945 2007-06-06 08:31:43Z pachanga $ 16 */ 17 abstract class lmbDbInfo 18 { 19 protected $tables = array(); 20 protected $name; 21 22 function __construct($name) 23 { 24 $this->name = $name; 25 } 26 27 function getName() 28 { 29 return $this->name; 30 } 31 32 function getTable($name) 33 { 34 if(!$this->hasTable($name)) 35 { 36 throw new lmbDbException("Table '$name' does not exist"); 37 } 38 return $this->tables[$name]; 39 } 40 41 function hasTable($name) 42 { 43 $this->loadTables(); 44 return array_key_exists($name, $this->tables); 45 } 46 47 function getTableList() 48 { 49 $this->loadTables(); 50 return array_keys($this->tables); 51 } 52 53 abstract function loadTables(); 54 } 55 56 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Tue Oct 7 05:02:03 2008 | Cross-referenced by PHPXref 0.7 |