![]() |
CMS
Version 3.9
|
TaxonomyManager provides the internal API for working with taxonomies, facets and bindings. More...
Public Member Functions | |
__construct () | |
Create a new TaxonomyManager instance. More... | |
Static Public Member Functions | |
static | setDefaults () |
static | getTabs ($key) |
static | getRegisteredClasses () |
Retrieved the list of DataItem classes that have registered as supporting taxonomy term associations. More... | |
static | getRegisteredClassOptions () |
Retrieves the list of DataItem classes that have registered as supporting taxonomy term associations in an associated array format suitable for use with a SelectFieldRenderer or CheckListFieldRenderer. More... | |
static | getBindableClasses () |
static | registerBindableClass ($class, $format, $constraint="", $fieldRenderer=BindingTargetFieldRenderer, $facetFilter=BindingTargetFacetFilter) |
static | getBindableClassOptions () |
static | getBindingOptions ($bindingTarget) |
static | getBindingOptionFormat ($bindingTarget) |
static | getBindingFieldRendererClass ($bindingTarget) |
static | getBindingFacetFilterClass ($bindingTarget) |
static | addTaxonomyFieldRenderers ($form, $showSelectAll=true, $group=null, $limitTo=null) |
static | addBindingFieldRenderers ($form, $showSelectAll=true, $group=null) |
static | getAssociatedTaxonomies ($classes, $facet_filter_only=false) |
static | getBindingTargets ($classes, $facet_filter_only=false) |
static | importTerms ($taxonomy, $file) |
static | addFacets ($manager, $classes, $dropdown=true, $max_width="200px", $width="200px", $height="120px") |
static | getRequestTerms ($classes) |
static | getRequestFilterConstraint ($class) |
static | cloneTaxonomy ($form) |
static | getBoundItems ($source, $class, $constraint="") |
Retrieve items of the specified class that are bound to the specified source object. More... | |
static | getBoundItemsReverse ($target, $class, $constraint="") |
Same as TaxonomyManager::getBoundItems, but with the reverse relationship. More... | |
static | countBoundItems ($target, $class, $constraint="") |
Returns the number of items of the specified class that are bound to the specified source object. More... | |
static | countBoundItemsReverse ($target, $class, $constraint="") |
Same as TaxonomyManager::countBoundItems, but with the reverse relationship. More... | |
static | generateSearchConstraint ($text, $class, $placeholder=false) |
Generates a search constraint matching the supplied text against taxonomy terms that might be associated with the given class. More... | |
static | upgradeComponent ($version) |
static | registerSerializationHandler () |
Static Public Attributes | |
static | $bindableClasses = null |
TaxonomyManager provides the internal API for working with taxonomies, facets and bindings.
These methods are designed to bridge the gap between the user-extensible taxonomy schemas and the defined items in your data model. TaxonomyManager also provides event handlers and common functionality for the taxonomy component.
Definition at line 90 of file taxonomy_manager.inc.
TaxonomyManager::__construct | ( | ) |
Create a new TaxonomyManager instance.
Generally not required as all methods are static.
Definition at line 98 of file taxonomy_manager.inc.
|
static |
Definition at line 259 of file taxonomy_manager.inc.
|
static |
Definition at line 418 of file taxonomy_manager.inc.
|
static |
Definition at line 217 of file taxonomy_manager.inc.
|
static |
Definition at line 499 of file taxonomy_manager.inc.
|
static |
Returns the number of items of the specified class that are bound to the specified source object.
DataItem | $source | the source item |
string | $class | the class of bound items to retrieve |
string | $constraint | optional extra constraint or ordering |
Definition at line 597 of file taxonomy_manager.inc.
|
static |
Same as TaxonomyManager::countBoundItems, but with the reverse relationship.
DataItem | $target | the target item |
string | $class | the class of bound items to retrieve |
string | $constraint | optional extra constraint or ordering |
Definition at line 619 of file taxonomy_manager.inc.
|
static |
Generates a search constraint matching the supplied text against taxonomy terms that might be associated with the given class.
string | $text | the search text |
string | $class | the DataItem class that is being search |
string | $placeholder | true if $text is a placeholder variable, false, |
Definition at line 643 of file taxonomy_manager.inc.
|
static |
Definition at line 298 of file taxonomy_manager.inc.
|
static |
Definition at line 150 of file taxonomy_manager.inc.
|
static |
Definition at line 167 of file taxonomy_manager.inc.
|
static |
Definition at line 211 of file taxonomy_manager.inc.
|
static |
Definition at line 205 of file taxonomy_manager.inc.
|
static |
Definition at line 199 of file taxonomy_manager.inc.
|
static |
Definition at line 182 of file taxonomy_manager.inc.
|
static |
Definition at line 327 of file taxonomy_manager.inc.
|
static |
Retrieve items of the specified class that are bound to the specified source object.
DataItem | $source | the source item |
string | $class | the class of bound items to retrieve |
string | $constraint | optional extra constraint or ordering |
Definition at line 552 of file taxonomy_manager.inc.
|
static |
Same as TaxonomyManager::getBoundItems, but with the reverse relationship.
DataItem | $target | the target item |
string | $class | the class of bound items to retrieve |
string | $constraint | optional extra constraint or ordering |
Definition at line 574 of file taxonomy_manager.inc.
|
static |
Retrieved the list of DataItem classes that have registered as supporting taxonomy term associations.
Definition at line 121 of file taxonomy_manager.inc.
|
static |
Retrieves the list of DataItem classes that have registered as supporting taxonomy term associations in an associated array format suitable for use with a SelectFieldRenderer or CheckListFieldRenderer.
Definition at line 135 of file taxonomy_manager.inc.
|
static |
Definition at line 471 of file taxonomy_manager.inc.
|
static |
Definition at line 445 of file taxonomy_manager.inc.
|
static |
Definition at line 108 of file taxonomy_manager.inc.
|
static |
Definition at line 356 of file taxonomy_manager.inc.
|
static |
Definition at line 161 of file taxonomy_manager.inc.
|
static |
Definition at line 658 of file taxonomy_manager.inc.
|
static |
Definition at line 103 of file taxonomy_manager.inc.
|
static |
Definition at line 652 of file taxonomy_manager.inc.
|
static |
Definition at line 92 of file taxonomy_manager.inc.