SilverStripe\FullTextSearch\Search\SearchIntrospection
Some additional introspection tools that are used often by the fulltext search code
Synopsis
class SearchIntrospection
{
- // members
- protected static array $ancestry = ;
- protected static array $hierarchy = ;
- // methods
- public static bool is_subclass_of()
- public static array hierarchy()
- public static void add_unique_by_ancestor()
- public static void has_extension()
Members
protected
- $ancestry
- $hierarchy
Methods
public
- add_unique_by_ancestor() — Add classes to list, keeping only the parent when parent & child are both in list after add
- has_extension() — Does this class, it's parent (or optionally one of it's children) have the passed extension attached?
- hierarchy() — Get all the classes involved in a DataObject hierarchy - both super and optionally subclasses
- is_subclass_of() — Check if class is subclass of (a) the class in $of, or (b) any of the classes in the array $of