1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-11 00:24:19 +02:00

- affectedRows(), insertId(), rowCount() are aliases for getAffectedRows(), getInsertId(), getRowCount()

This commit is contained in:
David Grudl
2009-02-26 20:02:14 +00:00
parent d2f1beba57
commit 2f86997ca7
14 changed files with 109 additions and 55 deletions

View File

@@ -116,9 +116,20 @@ class DibiResult extends DibiObject implements IDataSource
* Returns the number of rows in a result set.
* @return int
*/
final public function getRowCount()
{
return $this->getDriver()->getRowCount();
}
/**
* Returns the number of rows in a result set. Alias for getRowCount().
* @return int
*/
final public function rowCount()
{
return $this->getDriver()->rowCount();
return $this->getDriver()->getRowCount();
}
@@ -602,7 +613,7 @@ class DibiResult extends DibiObject implements IDataSource
*/
final public function count()
{
return $this->rowCount();
return $this->getRowCount();
}