wireClassParents() function
Return array of all parent classes for given class/object
ProcessWire namespace aware version of PHP’s class_parents() function
Returns associative array where array keys are full namespaced class name, and values are the non-namespaced classname.
Please note this method is and thus not intended to be called directly.
Internal usage
// basic internal usage
$array = wireClassParents($className);
// internal usage with all arguments
$array = wireClassParents($className, bool $autoload = true);
Arguments
Name | Type(s) | Description |
---|---|---|
$className | string object | |
$autoload (optional) | bool |
Return value
array
Functions methods and properties
API reference based on ProcessWire core version 3.0.251