LinkSiteTree
        
        extends DataExtension
    
    
            
            in package
            
        
    
    
    
Add sitetree type to link object
Table of Contents
Properties
- $db : array<string|int, mixed>
- Database fields
- $has_one : array<string|int, mixed>
- Has_one relationship
- $sitetree_field_label : mixed
- Defines the label used in the sitetree dropdown.
- $types : array<string|int, mixed>
- A map of object types that can be linked to Custom dataobjects can be added to this
Methods
- SiteTree() : SiteTree
- updateCMSFields() : mixed
- Update Fields
- updateIsCurrent() : bool
- updateIsOrphaned() : bool
- updateIsSection() : bool
Properties
$db
Database fields
    private
    static    array<string|int, mixed>
    $db
     = ['Anchor' => 'Varchar(255)']
    
    
    
$has_one
Has_one relationship
    private
    static    array<string|int, mixed>
    $has_one
     = ['SiteTree' => \SilverStripe\CMS\Model\SiteTree::class]
    
    
    
$sitetree_field_label
Defines the label used in the sitetree dropdown.
    private
    static    mixed
    $sitetree_field_label
     = 'MenuTitle'
    
    
    
$types
A map of object types that can be linked to Custom dataobjects can be added to this
    private
    static    array<string|int, mixed>
    $types
     = ['SiteTree' => 'Page on this website']
    
    
    
Methods
SiteTree()
    public
                    SiteTree() : SiteTree
    Return values
SiteTreeupdateCMSFields()
Update Fields
    public
                    updateCMSFields(FieldList $fields) : mixed
    Parameters
- $fields : FieldList
updateIsCurrent()
    public
                    updateIsCurrent(mixed &$status) : bool
    Parameters
- $status : mixed
Return values
boolupdateIsOrphaned()
    public
                    updateIsOrphaned(mixed &$status) : bool
    Parameters
- $status : mixed
Return values
boolupdateIsSection()
    public
                    updateIsSection(mixed &$status) : bool
    Parameters
- $status : mixed