mirror of
https://github.com/dg/dibi.git
synced 2025-08-06 14:16:39 +02:00
DibiDatabaseInfo: provides substitutions
This commit is contained in:
@@ -85,6 +85,7 @@ class DibiDatabaseInfo extends DibiObject
|
||||
*/
|
||||
public function getTable($name)
|
||||
{
|
||||
$name = DibiTranslator::substitute($name);
|
||||
$this->init();
|
||||
$l = strtolower($name);
|
||||
if (isset($this->tables[$l])) {
|
||||
@@ -103,6 +104,7 @@ class DibiDatabaseInfo extends DibiObject
|
||||
*/
|
||||
public function hasTable($name)
|
||||
{
|
||||
$name = DibiTranslator::substitute($name);
|
||||
$this->init();
|
||||
return isset($this->tables[strtolower($name)]);
|
||||
}
|
||||
@@ -227,6 +229,7 @@ class DibiTableInfo extends DibiObject
|
||||
*/
|
||||
public function getColumn($name)
|
||||
{
|
||||
$name = DibiTranslator::substitute($name);
|
||||
$this->initColumns();
|
||||
$l = strtolower($name);
|
||||
if (isset($this->columns[$l])) {
|
||||
@@ -245,6 +248,7 @@ class DibiTableInfo extends DibiObject
|
||||
*/
|
||||
public function hasColumn($name)
|
||||
{
|
||||
$name = DibiTranslator::substitute($name);
|
||||
$this->initColumns();
|
||||
return isset($this->columns[strtolower($name)]);
|
||||
}
|
||||
@@ -396,6 +400,7 @@ class DibiResultInfo extends DibiObject
|
||||
*/
|
||||
public function getColumn($name)
|
||||
{
|
||||
$name = DibiTranslator::substitute($name);
|
||||
$this->initColumns();
|
||||
$l = strtolower($name);
|
||||
if (isset($this->names[$l])) {
|
||||
@@ -414,6 +419,7 @@ class DibiResultInfo extends DibiObject
|
||||
*/
|
||||
public function hasColumn($name)
|
||||
{
|
||||
$name = DibiTranslator::substitute($name);
|
||||
$this->initColumns();
|
||||
return isset($this->names[strtolower($name)]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user