WireApiDocs::getClassInfo()

Get class info via reflection

Returns an array with:

  • name (string): Class name
  • parent (string): Direct parent class name, or empty string if none
  • interfaces (array): Interfaces implemented directly by this class (not inherited)
  • traits (array): Traits used directly by this class
  • abstract (bool): Is the class abstract?
  • summary (string): Summary from class phpdoc (

Usage

$array = $wireApiDocs->getClassInfo(string $class);

Arguments

NameType(s)Description
$classstring

Class name (with or without ProcessWire namespace)

Return value

array

Empty array if class not found


WireApiDocs methods and properties

API reference based on ProcessWire core version 3.0.268