Habari\Vocabulary::max_count PHP Метод

max_count() публичный Метод

Returns the number of times the most used tag is used.
public max_count ( ) : integer
Результат integer The number of times the most used tag is used.
    public function max_count()
    {
        return DB::get_value('SELECT count( t2.object_id ) AS max FROM {terms} t, {object_terms} t2 WHERE t2.term_id = t.id AND t.vocabulary_id = ? GROUP BY t.id ORDER BY max DESC LIMIT 1', array($this->id));
    }