gorriecoe\Link\Extensions\LinkSiteTree
Add sitetree type to link object
Synopsis
class LinkSiteTree
extends DataExtension
{
- // members
- private static array $db = ;
- private static array $has_one = ;
- private static array $types = ;
- private static string $sitetree_field_label = 'MenuTitle';
- // methods
- public void updateCMSFields()
- public bool updateIsCurrent()
- public bool updateIsSection()
- public bool updateIsOrphaned()
Hierarchy
Extends
- SilverStripe\ORM\DataExtension
Members
private
- $db
—
array
Database fields - $has_one
—
array
Has_one relationship -
$sitetree_field_label
Defines the label used in the sitetree dropdown. - $types
—
array
A map of object types that can be linked to Custom dataobjects can be added to this
Methods
public
- updateCMSFields() — Update Fields
- updateIsCurrent()
- updateIsOrphaned()
- updateIsSection()