DNADesign\AudioDefinition\Models\AudioDefinition
Synopsis
class AudioDefinition
extends DataObject
implements
PermissionProvider
{
- // members
- private static string $table_name = 'AudioDefinition';
- private static array $sources = ;
- private static array $db = ;
- private static array $has_many = ;
- private static array $defaults = ;
- private static array $summary_fields = ;
- private static string $default_sort = 'Term ASC';
- // methods
- public void getCMSFields()
- public string getTitle()
- public array getLanguageOptions()
- public TranslationService|null getSourceService()
- public void onAfterWrite()
- public string getLangAttr()
- public DataList getDefinitionsToDisplay()
- public void getLanguageName()
- public static json getOptionsForCmsSelector()
- public string getCacheKey()
- public static json getAdditionalCmsSelectorFields()
- public static AudioDefinition getByIdentifier()
- public array getSignaturesList()
- public void canView()
- public void canCreate()
- public void canEdit()
- public void canDelete()
- public void providePermissions()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Implements
- SilverStripe\Security\PermissionProvider
Members
private
- $db
- $default_sort
- $defaults
- $has_many
- $sources
- $summary_fields
- $table_name
Methods
public
- canCreate()
- canDelete()
- canEdit()
- canView() — Permissions
- getAdditionalCmsSelectorFields() — This method allows to inject additional fields that will appear under the "word" selector when adding a definition in the wysiwyg. SeeTinyMCE docs for format.
- getByIdentifier() — This method checks if the Audio Definition is requested by ID (default behaviour) but gives the opportunity to extensions to find the objet with a different identifier pattern
- getCMSFields()
- getCacheKey() — Return a string reflecting a change in the AudioDefinition to be used for refreshing the cache when needed
- getDefinitionsToDisplay() — Return the list of text definitions that could be displayed if the template allows for it.
- getLangAttr() — Return the language as a string valid for the html lang attribute
- getLanguageName() — Return the language as a readable string
- getLanguageOptions() — Return an array of Locale > Language Name to choose from as source of the definition
- getOptionsForCmsSelector() — Produce the json used by TinyMCE to populate the list of words than can be used in order to link to ta definition
- getSignaturesList() — Return an array of all the possible shortcode signature that can be used in a text area (in case they need to be manually added)
- getSourceService() — Return the right service for the language
- getTitle() — For CMS
- onAfterWrite() — Attempt to fetch the definition upon saving the object
- providePermissions()