/** * Returns a count of the # of records in the table * @param array $Wheres */ public function GetCount($Wheres = '') { $this->_BeforeGet(); $this->SQL->Select('*', 'count', 'Count')->From($this->Name); if (is_array($Wheres)) { $this->SQL->Where($Wheres); } $Data = $this->SQL->Get()->FirstRow(); return $Data === FALSE ? 0 : $Data->Count; }