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

File: test_with_api.php

Source Location: /PHP_UML-1.0.1/examples/test_with_api.php

Classes:

Page Details:

PEAR Package PHP_UML

This shows how to generate XMI with the API (without using the parser). It works a bit like the DOM, by attaching elements to each other, with an add() method.

This sample defines :

  • a file called 'Exception.php'
  • a package called 'PEAR'
  • a class called PEAR_Exception contained in that package
  • PEAR_Exception has a private static property called $_observers, and a constructor, taking one parameter ($message)
  • That class is defined in the file Exception.php

Includes:

require('PHP/UML.php') [line 22]

Documentation generated on Thu, 27 Aug 2009 17:30:09 +0000 by phpDocumentor 1.4.2. PEAR Logo Copyright © PHP Group 2004.