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

Class: PHP_UML_SimpleUID

Source Location: /PHP_UML-1.6.2/UML/SimpleUID.php

Class Overview


A class for generating unique IDs, in two possible ways.


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 35]
A class for generating unique IDs, in two possible ways.

Almost every XMI element contains a UID. This class can generate both globally unique IDs, and deterministic unique IDs (ie. the IDs are the same every time the parser is run again). We need such deterministic IDs because of the PHP_UML test suite, which would report errors otherwise (because of different IDs !) You select which one by setting the boolean property $determinisic to true/false



[ Top ]


Class Variables

$deterministic =  false

[line 49]

If true, the IDs contained in the XMI code will be very deterministic.

This is useful for running the PHP_UML test suite. Most of the time, you will want to have more unique IDs, so leave that property to false (the generation will then rely on uniqid()).

  • Access: public

Type:   boolean


[ Top ]



Method Detail

getUID   [line 56]

string getUID( )

Accessor for getting the UID

[ Top ]

reset   [line 68]

void reset( )

Reset the deterministic generator

[ Top ]


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