\MetadataExtension
An extension that must be applied to an object in order for it to have the ability to have metadata attached to it.
NOTE: You can use a "canApplySchemas" method in order to control whether a
user can apply manage the schemas attached to the object.
Synopsis
class MetadataExtension
extends DataExtension
{
- // methods
- public DataObjectSet getSchemas()
- public DataObjectSet getAttachedSchemas()
- protected void altAncestors()
- public ArrayList getInheritedSchemas()
- public void addSchema()
- public array getAllMetadata()
- public string getRawMetadataValue()
- public mixed Metadata()
- public string MetadataMetaTags()
- public void updateCMSFields()
- public void updateSettingsFields()
- public void saveMetadataSchemas()
- public void flushCache()
Hierarchy
Extends
- DataExtension
Members
Methods
protected
- altAncestors() — Alternative ancestor lookup that doesn't use getParent() which fails for Image/File classes to retrieve the true hierarchy.
public
- Metadata() — Returns a metadata value if it exists for a schema and field name, suitable for injection into a template.
- MetadataMetaTags() — Returns all the metadata fields for a schema name encased in standard HTML <meta> tags.
- addSchema() — Links a metadata schema to this object, if it's not already linked.
- flushCache()
- getAllMetadata()
- getAttachedSchemas() — Returns metadata schemas directly attached to this object via a schema link (not including inherited schemas).
- getInheritedSchemas() — If this is attached to an object with the hierarchy extension, it returns a set of a schema objects attached to any ancestors (which should be present on this object).
- getRawMetadataValue() — Returns a raw metadata value (i.e. not run through a process method).
- getSchemas() — Returns all the schema objects attached to this object, or any of its parents.
- saveMetadataSchemas() — Ensures that schemas that are linked to parent objects are not saved into this object's relationships.
- updateCMSFields()
- updateSettingsFields()