52 $terms = Query::create(
TaxonomyTerm,
"WHERE term_id IN (SELECT term_id FROM taxonomy_term_association WHERE class=:class AND id=:obj_id AND taxonomy_id IN (SELECT taxonomy_id FROM taxonomy WHERE identifier=:identifier)) AND taxonomy_id IN (SELECT taxonomy_id FROM taxonomy WHERE identifier=:identifier) ORDER BY term")
53 ->bind(
":class", get_class(
$obj),
":obj_id",
$obj->get(
$pk),
":identifier", $taxonomy_identifier)
56 return formatItems(
$terms,
"{term}", $separator);
64 static function decorate($item, $separator =
", ")
static decorate($item, $separator=", ")
Decorates the target DataItem with all the associated taxonomy terms.
static formatAssociatedTerms($taxonomy_identifier, $obj, $separator=", ")
Given a taxonomy identifier and an obj, return the associated terms.
static getAssociatedTaxonomies($classes, $facet_filter_only=false)