Added the zend framework 2 library, the path is specified in line no.26 in zend_modul...
[openemr.git] / interface / modules / zend_modules / library / Zend / Db / Sql / TableIdentifier.php
blobe368b2bd771ab983342711674737e1b9cc53a46a
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
8 */
10 namespace Zend\Db\Sql;
12 /**
14 class TableIdentifier
17 /**
18 * @var string
20 protected $table;
22 /**
23 * @var string
25 protected $schema;
27 /**
28 * @param string $table
29 * @param string $schema
31 public function __construct($table, $schema = null)
33 $this->table = $table;
34 $this->schema = $schema;
37 /**
38 * @param string $table
40 public function setTable($table)
42 $this->table = $table;
45 /**
46 * @return string
48 public function getTable()
50 return $this->table;
53 /**
54 * @return bool
56 public function hasSchema()
58 return ($this->schema != null);
61 /**
62 * @param $schema
64 public function setSchema($schema)
66 $this->schema = $schema;
69 /**
70 * @return null|string
72 public function getSchema()
74 return $this->schema;
77 public function getTableAndSchema()
79 return array($this->table, $this->schema);