\SnippetLanguage
Synopsis
class SnippetLanguage
extends DataObject
{
- // members
- private static array $db = ;
- private static array $has_many = ;
- private static array $defaults = ;
- private static array $extensions = ;
- private static string $default_sort = 'Name';
- private static array $allowed_children = ;
- private static string $default_child = 'Snippet';
- private array $defaultLanguages = ;
- // methods
- public {bool} canView()
- public void requireDefaultRecords()
- public {bool} canDelete()
- public {FieldSet} getCMSFields()
- public void Folders()
- public void hasSnippets()
- public {string} getTreeTitle()
- public {string} CMSTreeClasses()
- public void summaryFields()
- public {array} allowedChildren()
- public {string} default_child()
Hierarchy
Extends
- DataObject
Members
private
- $allowed_children
- $db
- $defaultLanguages
- $default_child
- $default_sort
- $defaults
- $extensions
- $has_many
Methods
public
- CMSTreeClasses() — Return the CSS classes to apply to this node in the CMS tree
- Folders()
- allowedChildren() — Returns an array of the class names of classes that are allowed to be children of this class.
- canDelete() — Checks to see if the given member can delete this object or not
- canView() — Checks to see if the member can view or not
- default_child() — Returns the default child for this class
- getCMSFields() — Gets fields used in the cms
- getTreeTitle() — Returns two <span> html DOM elements, an empty <span> with the class 'jstree-pageicon' in front, following by a <span> wrapping around its Title.
- hasSnippets() — Determins if the language has snippets return {bool} Counts how many children snippets there are if there are more than 0 returns true, false otherwise
- requireDefaultRecords() — Adds the default languages if they are missing
- summaryFields()