SearchIntrospection
class SearchIntrospection (View source)
Some additional introspection tools that are used often by the fulltext search code
Properties
| protected static | $ancestry | |||
| protected static | $hierarchy | 
Methods
Check if class is subclass of (a) the class in $of, or (b) any of the classes in the array $of
Get all the classes involved in a DataObject hierarchy - both super and optionally subclasses
Add classes to list, keeping only the parent when parent & child are both in list after add
Does this class, it's parent (or optionally one of it's children) have the passed extension attached?
Details
        
                static            bool
    is_subclass_of($class, $of)
        
    
    Check if class is subclass of (a) the class in $of, or (b) any of the classes in the array $of
        
                static            array
    hierarchy(string $class, bool $includeSubclasses = true, bool $dataOnly = false)
        
    
    Get all the classes involved in a DataObject hierarchy - both super and optionally subclasses
        
                static            
    add_unique_by_ancestor($list, $class)
        
    
    Add classes to list, keeping only the parent when parent & child are both in list after add
        
                static            
    has_extension($class, $extension, $includeSubclasses = true)
        
    
    Does this class, it's parent (or optionally one of it's children) have the passed extension attached?