\SnippetPackage
Synopsis
class SnippetPackage
extends DataObject
{
- // members
- private static array $db = ;
- private static array $has_many = ;
- private static string $default_sort = 'Title';
- // methods
- public {bool} canView()
- public {bool} canEdit()
- public {bool} canDelete()
- public {bool} canCreate()
- public {FieldList} getCMSFields()
- public {RequiredFields} getCMSValidator()
- public {string} CMSTreeClasses()
- public string getTreeTitle()
- public {bool} hasSnippets()
- public void summaryFields()
Hierarchy
Extends
- DataObject
Members
private
- $db
- $default_sort
- $has_many
Methods
public
- CMSTreeClasses() — Return the CSS classes to apply to this node in the CMS tree
- canCreate() — Checks to see if the member can create or not
- canDelete() — Checks to see if the member can delete or not
- canEdit() — Checks to see if the member can edit or not
- canView() — Checks to see if the member can view or not
- getCMSFields() — Gets fields used in the cms
- getCMSValidator() — Gets validator 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() — Always return true
- summaryFields()