public function objects($type) { $type_id = Vocabulary::object_type_id($type); $results = DB::get_column("SELECT object_id FROM {object_terms} WHERE term_id = ? AND object_type_id = ?", array($this->id, $type_id)); return $results; }