Poseidon for UML: User Guide
Prev |  | Next

# Appendix E. Poseidon PHP4 Code Generation Plug-In Guide

This guide is based on the PHP4 Manual, available at http://www.php.net/docs.php.

# General Rules

- The only classifier in PHP4 is 'Class'.

- PHP4 Class can not participate in an Association.

- There is no Exception in PHP4

- There are two files generated for each Class generation process:

  1. '.inc' file that contains the class declaration

  2. '.php' file that includes related the '.inc' on its first line

## Tagged Values

The following tagged value keys are supported for PHP4 Class:

- '<<<' for Heredoc string

- 'initval' for an initial value of an operation parameter

- '&' for operation parameter passed by reference

- '&' for a function that returns a reference

Prev | Home | Next
Specific Rules |  | PHP4 Class Modeling Rules