Previous Page
fetchConfig()

Solar
parents()

Next Page
start()

parents()

static public array parents ( string|object $spec, bool $include_class default 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.

Parents in "reverse" order ... element 0 is the immediate parent, element 1 the grandparent, etc.