->count()

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

Synopsis

int $DB_DataObject->count ([string|boolean $countWhat|$whereAddOnly [, boolean $whereAddOnly]])

Описание

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.

Параметр

Возвращаемое значение

int|false - number of results or false on an error

Заметка

Эта функция не должна вызываться статически.

Пример


HIVE: All information for read only. Please respect copyright!
Hosted by hive йца: йХЕБЯЙЮЪ ЦНПНДЯЙЮЪ АХАКХНРЕЙЮ