Yoast\WP\Lib

ORM::count()publicYoast 1.0

Tells the ORM that you wish to execute a COUNT query.

Метод класса: ORM{}

Хуков нет.

Возвращает

float|int. An integer representing the number of rows returned.

Использование

$ORM = new ORM();
$ORM->count( $column );
$column(строка)
The table column.
По умолчанию: `''`*

Код ORM::count() Yoast 22.4

public function count( $column = '*' ) {
	return $this->call_aggregate_db_function( __FUNCTION__, $column );
}