DNADesign\AudioDefinition\Extensions\AudioDefinition_ContextExtension
Synopsis
class AudioDefinition_ContextExtension
extends Extension
{
- // methods
- public void updateDefinitionsToDisplay()
- public void updateOptionsForCmsSelector()
- public void getByAlternateIdentifier()
- public void updateSignaturedList()
Hierarchy
Extends
- SilverStripe\Core\Extension
Methods
public
- getByAlternateIdentifier() — As the identifier is can be passed as a string $id|$contextID we need to deconstruct the string to get the ID of the definition
- updateDefinitionsToDisplay() — Alter the list of definitions that should be displayed when a TextDefinitionContext ID is supplied
- updateOptionsForCmsSelector() — When context is in use, user can select the words in the dropdown with their associated context NOTE: if there isn't a context associated with any of the text definition then show only the default word
- updateSignaturedList() — Update the list of short code that can be included in a text area with added contexts