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

get_by_id() публичный статический Метод

Return a Vocabulary by id
public static get_by_id ( integer $id ) : Vocabulary
$id integer The id of the vocabulary
Результат Vocabulary The object requested
    public static function get_by_id($id)
    {
        $query = Query::create('{vocabularies}')->select('*');
        $query->where()->add('id = :id', array('id' => $id));
        return $query->row('Vocabulary');
    }