\DataObjectNode
Subclass of ArrayData that has some site specific functionality
- Author: marcus
Synopsis
class DataObjectNode
extends ArrayData
{
- // members
- protected SiteDataService $siteData;
- // methods
- public void __construct()
- public void Children()
- public void getAncestors()
- public void getParent()
- public bool isCurrent()
- public bool isSection()
- public bool isOrphaned()
- public string LinkOrCurrent()
- public string LinkOrSection()
- public string LinkingMode()
- public bool InSection()
Hierarchy
Extends
- ArrayData
Members
protected
- $siteData — SiteDataService
Methods
public
- __construct()
- Children()
- InSection() — Check if this page is in the given current section.
- LinkOrCurrent() — Return "link" or "current" depending on if this is the {@link SiteTree::isCurrent()} current page.
- LinkOrSection() — Return "link" or "section" depending on if this is the {@link SiteTree::isSeciton()} current section.
- LinkingMode() — Return "link", "current" or "section" depending on if this page is the current page, or not on the current page but in the current section.
- getAncestors()
- getParent()
- isCurrent() — Returns true if this is the currently active page being used to handle this request.
- isOrphaned() — Check if the parent of this page has been removed (or made otherwise unavailable), and is still referenced by this child. Any such orphaned page may still require access via the CMS, but should not be shown as accessible to external users.
- isSection() — Check if this page is in the currently active section (e.g. it is either current or one of its children is currently being viewed).