BaseList::getCount PHP Method

getCount() public method

Get db rows count
public getCount ( string $from = NULL ) : integer
$from string
return integer
    public function getCount($from = NULL)
    {
        global $g_ado_db;
        $queryStr = 'SELECT COUNT(*)
            FROM ' . (isset($from) ? "({$from}) f" : $this->model->m_dbTableName);
        return (int) $g_ado_db->GetOne($queryStr);
    }