public function getRowCount($tableName, $column = 'id')
    {
        $sql = 'SELECT count("' . $column . '") FROM "' . $tableName . '"';
        $result = $this->persistence->query($sql);
        $returnValue = intval($result->fetchColumn(0));
        $result->closeCursor();
        return (int) $returnValue;
    }
public function getRowCount($tableName, $column = 'id')
    {
        $sql = 'SELECT count("' . $column . '") FROM "' . $tableName . '"';
        $result = $this->persistence->query($sql);
        $returnValue = intval($result->fetchColumn(0));
        $result->closeCursor();
        return (int) $returnValue;
    }
public function getRowCount ( $ tableName , $ column = 'id' ) { $ sql = 'SELECT count("' . $ column . '") FROM "' . $ tableName . '"' ; $ result = $ this -> persistence -> query ( $ sql ) ; $ returnValue = intval ( $ result -> fetchColumn ( 0 ) ) ; $ result -> closeCursor ( ) ; return ( int ) $ returnValue ; }
Get the row count of a given table. The column to count is specified for
performance reasons.

@access public
@author Jerome Bogaerts, <jerome@taotesting.com>
@param  string tableName The name of the table.
@param  string column The column name on wich the COUNT sql statement must be performed.
@return int
Get the row count of a given table . The column to count is specified for performance reasons .