PHP Class PHPDocMD\Parser

Author: Evert Pot (http://www.rooftopsolutions.nl/)
Datei anzeigen Open project: evert/phpdoc-md

Protected Properties

Property Type Description
$classDefinitions array The list of classes and interfaces.
$structureXmlFile string Path to the structure.xml file.

Public Methods

Method Description
__construct ( string $structureXmlFile )
run ( ) Starts the process.

Protected Methods

Method Description
expandMethods ( string $className ) : array This method goes through all the class definitions, and adds non-overridden method information from parent classes.
expandProperties ( string $className ) : array This method goes through all the class definitions, and adds non-overridden property information from parent classes.
getClassDefinitions ( SimpleXmlElement $xml ) Gets all classes and interfaces from the file and puts them in an easy to use array.
parseConstants ( SimpleXMLElement $class ) : array Parses all constant information for a single class or interface.
parseMethods ( SimpleXMLElement $class ) : array Parses all the method information for a single class or interface.
parseProperties ( SimpleXMLElement $class ) : array Parses all property information for a single class or interface.

Method Details

__construct() public method

public __construct ( string $structureXmlFile )
$structureXmlFile string

expandMethods() protected method

This method goes through all the class definitions, and adds non-overridden method information from parent classes.
protected expandMethods ( string $className ) : array
$className string
return array

expandProperties() protected method

This method goes through all the class definitions, and adds non-overridden property information from parent classes.
protected expandProperties ( string $className ) : array
$className string
return array

getClassDefinitions() protected method

Gets all classes and interfaces from the file and puts them in an easy to use array.
protected getClassDefinitions ( SimpleXmlElement $xml )
$xml SimpleXmlElement

parseConstants() protected method

You must pass an xml element that refers to either the class or interface element from structure.xml.
protected parseConstants ( SimpleXMLElement $class ) : array
$class SimpleXMLElement
return array

parseMethods() protected method

You must pass an xml element that refers to either the class or interface element from structure.xml.
protected parseMethods ( SimpleXMLElement $class ) : array
$class SimpleXMLElement
return array

parseProperties() protected method

You must pass an xml element that refers to either the class or interface element from structure.xml.
protected parseProperties ( SimpleXMLElement $class ) : array
$class SimpleXMLElement
return array

run() public method

Starts the process.
public run ( )

Property Details

$classDefinitions protected_oe property

The list of classes and interfaces.
protected array $classDefinitions
return array

$structureXmlFile protected_oe property

Path to the structure.xml file.
protected string $structureXmlFile
return string