public function getRowCount($tableName)
    {
        $result = $this->store->queryDB(
            'SELECT COUNT(*) as count FROM '.$tableName,
            $this->store->getDBCon()
        );
        $row = $result->fetch_assoc();

        return $row['count'];
    }
public function getRowCount($tableName)
    {
        $result = $this->store->queryDB(
            'SELECT COUNT(*) as count FROM '.$tableName,
            $this->store->getDBCon()
        );
        $row = $result->fetch_assoc();

        return $row['count'];
    }
public function getRowCount ( $ tableName ) { $ result = $ this -> store -> queryDB ( 'SELECT COUNT(*) as count FROM ' . $ tableName , $ this -> store -> getDBCon ( ) ) ; $ row = $ result -> fetch_assoc ( ) ; return $ row [ 'count' ] ; }
Helper function to get the number of rows in a table.

@param string $tableName

@return int number of rows in the target table
Helper function to get the number of rows in a table .