Heyday\MenuManager\MenuItem
Class MenuItem
Synopsis
class MenuItem
extends DataObject
implements
PermissionProvider
{
- // members
- private static string $table_name = 'MenuItem';
- private static array $db = ;
- private static array $has_one = ;
- private static array $searchable_fields = ;
- private static string $default_sort = 'Sort';
- // methods
- public string IsNewWindowNice()
- public array providePermissions()
- public boolean canCreate()
- public boolean canDelete()
- public boolean canEdit()
- public boolean canView()
- public FieldList getCMSFields()
- public mixed Parent()
- public mixed __get()
- public mixed getTitle()
- public void onBeforeWrite()
- public void summaryFields()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Implements
- SilverStripe\Security\PermissionProvider
Members
private
- $db — array
- $default_sort — string
- $has_one — array
- $searchable_fields — array
- $table_name — string
Methods
public
- IsNewWindowNice()
- Parent()
- __get() — Attempts to return the $field from this MenuItem If $field is not found or it is not set then attempts to return a similar field on the associated Page (if there is one)
- canCreate()
- canDelete()
- canEdit()
- canView()
- getCMSFields()
- getTitle()
- onBeforeWrite() — Checks to see if a page has been chosen and if so sets Link to null This means that used in conjunction with the __get method above calling $menuItem->Link won't return the Link field of this MenuItem but rather call the Link method on the associated Page
- providePermissions()
- summaryFields()