gorriecoe\Menu\Models\MenuSet
MenuSet
Synopsis
class MenuSet
extends DataObject
implements
PermissionProvider,ScaffoldingProvider
{
- // members
- private static string $table_name = 'MenuSet';
- private static string $singular_name = 'Menu';
- private static string $plural_name = 'Menus';
- private static array $db = ;
- private static array $has_many = ;
- private static array $summary_fields = ;
- private static array $searchable_fields = ;
- // methods
- public FieldList getCMSFields()
- public array providePermissions()
- public string PermissionKey()
- public boolean canCreate()
- public boolean canDelete()
- public boolean canEdit()
- public boolean canView()
- public void requireDefaultRecords()
- public string CMSEditLink()
- public static MenuSet|Null get_by_slug()
- public ManyManyList getLinks()
- public void provideGraphQLScaffolding()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Implements
- SilverStripe\Security\PermissionProvider
- SilverStripe\GraphQL\Scaffolding\Interfaces\ScaffoldingProvider
Members
private
- $db
—
array
Database fields - $has_many
—
array
Has_many relationship - $plural_name
—
string
Plural name for CMS - $searchable_fields
—
array
Defines a default list of filters for the search context - $singular_name
—
string
Singular name for CMS - $summary_fields
—
array
Defines summary fields commonly used in table columns as a quick overview of the data for this dataobject - $table_name
—
string
Defines the database table name
Methods
public
- CMSEditLink() — Generates a link to edit this page in the CMS.
- PermissionKey()
- canCreate() — Creating Permissions.
- canDelete() — Deleting Permissions This module is not intended to allow deleting menus via CMS
- canEdit() — Editing Permissions
- canView() — Viewing Permissions
- getCMSFields() — CMS Fields
- getLinks() — Relationship accessor for Graphql
- get_by_slug() — Return the first menuset matching the given slug.
- provideGraphQLScaffolding()
- providePermissions() — Return a map of permission codes to add to the dropdown shown in the Security section of the CMS
- requireDefaultRecords() — Set up default records based on the yaml config