Habari\Term::object_types PHP Метод

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

Find the types of objects associated with this Term.
public object_types ( ) : Array
Результат Array of objects, with each object containing an object id and an object type name
    public function object_types()
    {
        $results = DB::get_results('SELECT terms.object_id, types.name as `type` FROM {object_terms} terms, {object_types} types WHERE terms.object_type_id = types.id and term_id = :term_id', array('term_id' => $this->id));
        return $results;
    }