Get an array of parent classes and interfaces for the given object
Usage
// basic usage
$array = $hooks->getClassParents($object);
// usage with all arguments
$array = $hooks->getClassParents($object, bool $cache = true);
Arguments
Name | Type(s) | Description |
---|---|---|
object | Wire, string | Maybe either object instance or class name |
cache (optional) | bool | Allow use of cache for getting or storing? (default=true) |
Return value
array
API reference based on ProcessWire core version 3.0.236