PHP_UML
[ class tree: PHP_UML ] [ index: PHP_UML ] [ all elements ]

Class: PHP_UML_Input_PHP_ParserImpl

Source Location: /PHP_UML-1.6.2/UML/Input/PHP/ParserImpl.php

Class Overview

PHP_UML_Input_PHP_Parser
   |
   --PHP_UML_Input_PHP_ParserImpl

An implementation of PHP parser.


Author(s):

Methods


Inherited Variables

Inherited Methods


Class Details

[line 35]
An implementation of PHP parser.

It relies on the PHP instruction token_get_all(). Most navigabilities between associated elements are bidirectional (the packages know their owned elements, and the classes know their nesting package) In a first step, relations (extends, implements) use strings. It means that the namespace of a class is memorized through a string. Once the parsing is done, a Resolver implementation must be used, so that all the named references be replaced by PHP references.



[ Top ]


Method Detail

__construct (Constructor)   [line 120]

PHP_UML_Input_PHP_ParserImpl __construct( PHP_UML_Metamodel_Superstructure &$struct, [PHP_UML_Input_PHP_ParserOptions $options = null])

  • Access: public

Overrides PHP_UML_Input_PHP_Parser::__construct() (Constructor)

Parameters:

PHP_UML_Metamodel_Superstructure   &$struct   — 
PHP_UML_Input_PHP_ParserOptions   $options   — 

[ Top ]

getModel   [line 144]

void getModel( )

  • Access: public

[ Top ]

getResolver   [line 219]

PHP_UML_Metamodel_TypeResolver getResolver( )

Retrieve an implementation of TypeResolver
  • Access: public

[ Top ]

parse   [line 155]

void parse( string $fileBase, [string $filePath = null])

Parse a PHP file
  • Access: public

Overrides PHP_UML_Input_PHP_Parser::parse() (Parse a PHP file)

Parameters:

string   $fileBase   —  Full path, or base directory
string   $filePath   —  Pathfile (relative to $fileBase)

[ Top ]

parsePhp   [line 193]

void parsePhp( string $phpContent)

Parse PHP content
  • Access: public

Parameters:

string   $phpContent   —  PHP code provided as a string

[ Top ]

setModel   [line 139]

void setModel( PHP_UML_Metamodel_Superstructure $model)

  • Access: public

Parameters:

PHP_UML_Metamodel_Superstructure   $model   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 16:01:23 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.