->count()

->count() -- Perform a select count() request

Synopsis

int $DB_DataObject->count ()

Description

It performs a select count() request on the tables key column and returns the number of resulting rows. The default condition applied to the count() is a combination of the object variables and whereAdd settings. If the constant DB_DATAOBJECT_WHEREADD_ONLY is passed in as the first parameter then only the whereAdd settings will be used.

Parameter

Return value

int - number of results

Note

This function can not be called statically.

Example