Solar_Class::parents()

static public array Solar_Class::parents ( string|object $spec , bool $include_class = false )

Returns an array of the parent classes for a given class.

Parameters

  • (string|object) $spec: The class or object to find parents for.

  • (bool) $include_class: If true, the class name is element 0, the parent is element 1, the grandparent is element 2, etc.

Returns

  • (array)

Description

Returns an array of the parent classes for a given class.



Local