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

Class: PHP_UML_PHP_Parser

Source Location: /PHP_UML-0.4.2/UML/PHP/Parser.php

Class Overview


A combination of string iteration and regular expressions.


Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 32]
A combination of string iteration and regular expressions.

It stores all the elements if finds in a PHP_UML_Metamodel_Superstructure

Most navigabilities between associated elements are bidirectional (the packages know their owned elements, and the classes know their nesting package) At first, relations use string references (the name of the element). Once the parsing is completed, the method finalize() must be called, so that the named references be replaced by PHP references (&$xxx).



[ Top ]


Class Variables

$model =

[line 50]

Reference to a PHP_UML_Metamodel_Superstructure (where the parser stores all the program elements it finds)
  • Access: public



[ Top ]



Method Detail

__construct (Constructor)   [line 92]

PHP_UML_PHP_Parser __construct( string $root, [bool $docblocks = true], [bool $dollar = true])

Constructor
  • Access: public

Parameters:

string   $root   —  Root package name
bool   $docblocks   —  True = docblocks are scanned
bool   $dollar   —  True = $ in variables is kept

[ Top ]

parse   [line 108]

void parse( string $fileBase, string $filePath)

Parses a PHP file
  • Access: public

Parameters:

string   $fileBase   —  Base directory
string   $filePath   —  Pathfile (relative to $fileBase)

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:22:18 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.