public function getMessagesCount($uid, $filters=array())
	{
		if (!$uid)
		{
			return 0;
		}

		$entries = $this->buildQuery($uid, $filters);

		return $entries->total();
	}
public function getMessagesCount($uid, $filters=array())
	{
		if (!$uid)
		{
			return 0;
		}

		$entries = $this->buildQuery($uid, $filters);

		return $entries->total();
	}
public function getMessagesCount ( $ uid , $ filters = array ( ) ) { if ( ! $ uid ) { return 0 ; } $ entries = $ this -> buildQuery ( $ uid , $ filters ) ; return $ entries -> total ( ) ; }
Get a record count for a user based on filters passed

@param   integer  $uid      User ID
@param   array    $filters  Filters to build query from
@return  mixed    False if errors, integer on success
Get a record count for a user based on filters passed