Make isId function available
This commit is contained in:
@@ -270,7 +270,7 @@ class Db extends PhpObject
|
|||||||
return $asResult;
|
return $asResult;
|
||||||
}
|
}
|
||||||
|
|
||||||
private function getMaxIncrementedValue($sTable)
|
public function getMaxIncrementedValue($sTable)
|
||||||
{
|
{
|
||||||
return $this->selectValue($sTable, "MAX(".$this->getId($sTable).")");
|
return $this->selectValue($sTable, "MAX(".$this->getId($sTable).")");
|
||||||
}
|
}
|
||||||
@@ -293,7 +293,7 @@ class Db extends PhpObject
|
|||||||
return $sTableName.".".$sColumnName;
|
return $sTableName.".".$sColumnName;
|
||||||
}
|
}
|
||||||
|
|
||||||
private function isId($sColumnName, $sTableName='')
|
public function isId($sColumnName, $sTableName='')
|
||||||
{
|
{
|
||||||
$asTables = ($sTableName=='')?$this->getTables():array($sTableName);
|
$asTables = ($sTableName=='')?$this->getTables():array($sTableName);
|
||||||
$asTableIds = array_map(array('self', 'getId'), $asTables);
|
$asTableIds = array_map(array('self', 'getId'), $asTables);
|
||||||
|
|||||||
Reference in New Issue
Block a user