SilverStripe\FullTextSearch\Search\SearchIntrospection::hierarchy
Get all the classes involved in a DataObject hierarchy - both super and optionally subclasses
Signature
protected function hierarchy(string
$class,
[boolean
$includeSubclasses = true,
[boolean
$dataOnly = false]] )
Parameters
$class
—
string
- - The class to query
$includeSubclasses
—
boolean
- - True to return subclasses as well as super classes
$dataOnly
—
boolean
- - True to only return classes that have tables
Returns
- array
- - Integer keys, String values as classes sorted by depth (most super first)