\MenuItem_Separator
Class MenuItem
Synopsis
class MenuItem_Separator
extends MenuItem
implements
PermissionProvider
{
- // members
- private static string $user_friendly_title = 'Separator';
- private static boolean $disable_image = true;
- private static boolean $disable_hierarchy = true;
- // methods
- public FieldList getCMSFields()
- public void onBeforeWrite()
Hierarchy
Extends
- MenuItem
Implements
- PermissionProvider
Members
private
- $disable_hierarchy
—
boolean
Disabling child fields - $disable_image
—
boolean
Disabling image field - $user_friendly_title
—
string
Title for this type of MenuItem to be displayed in the CMS
Methods
public
- getCMSFields()
- 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