Add selectId alias
This commit is contained in:
@@ -688,6 +688,11 @@ class Db extends PhpObject
|
||||
return empty($oResult)?false:$oResult;
|
||||
}
|
||||
|
||||
public function selectId($sTableName, $oConstraints)
|
||||
{
|
||||
return $this->selectValue($sTableName, self::getId($sTableName), $oConstraints);
|
||||
}
|
||||
|
||||
public function pingValue($sTableName, $oConstraints)
|
||||
{
|
||||
return $this->selectValue($sTableName, 'COUNT(1)', $oConstraints);
|
||||
|
||||
Reference in New Issue
Block a user