I have a php application where some web pages are used for different purposes.
Depending on the value of one (or more) parameters passed to the URL, the page includes one or another php file with different functionality.
Say I have client.php with the following code snippet:
<?php
$do=$_GET["do"];
switch($do){
case "":
include("clientes_display.php");
break;
case "addClient":
include("clientes_add.php");
break;
case "displayClient":
include("clientes_display.php");
break;
case "editClient":
include("clientes_edit.php");
break;
case "deleteClient":
include("clientes_delete.php");
break;
?>
How can I model such classes in a UML class diagram?
How can I simulate a specific instance of this class (specific "page" caused by a call with a specific value like? Do = displayClient)?
source
share