CyberDuck\Searchly\DataObject\DataObjectHierarchy
Builds DataObject hierarchy spec.
- Author: Andrew Mc Cormack <andy@cyber-duck.co.uk>
- Copyright: Copyright (c) 2018, Andrew Mc Cormack
- License: https://github.com/cyber-duck/silverstripe-searchly/license
Synopsis
class DataObjectHierarchy
{
- // members
- protected DataObject $source;
- protected array $hierarchy = ;
- // methods
- public void __construct()
- public array getHierarchy()
- private void setup()
Members
protected
- $hierarchy
—
array
Array of hierarchy models. - $source
—
SilverStripe\ORM\DataObject
Source model instance.
Methods
private
- setup() — Builds the hierarchy array and then removes ViewableData and DataObject from the array.
public
- __construct() — Sets up the hierarchy array.
- getHierarchy() — Returns the hierarchy model array.