class CRM_Extension_Info

Metadata for an extension (e.g. the extension's "info.xml" file)

Constants

FILENAME

Extension info file name.

Properties

$key
$type
$name
$label
$file
array $classloader

Methods

loadFromFile($file)

Load extension info an XML file.

loadFromString(string $string)

Load extension info a string.

__construct(null $key = NULL, null $type = NULL, null $name = NULL, null $label = NULL, null $file = NULL)

No description

parse(SimpleXMLElement $info)

Copy attributes from an XML document to $this

Details

at line 62
static CRM_Extension_Info loadFromFile($file)

Load extension info an XML file.

Parameters

$file

Return Value

CRM_Extension_Info

Exceptions

CRM_Extension_Exception_ParseException

at line 82
static CRM_Extension_Info loadFromString(string $string)

Load extension info a string.

Parameters

string $string XML content.

Return Value

CRM_Extension_Info

Exceptions

CRM_Extension_Exception_ParseException

at line 100
__construct(null $key = NULL, null $type = NULL, null $name = NULL, null $label = NULL, null $file = NULL)

Parameters

null $key
null $type
null $name
null $label
null $file

at line 113
parse(SimpleXMLElement $info)

Copy attributes from an XML document to $this

Parameters

SimpleXMLElement $info