classes structure

This commit is contained in:
Adnan
2010-06-03 15:28:00 +05:00
parent 345f6d21d0
commit 793468f140
6 changed files with 53 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
<?php
include_once("relationSchema.abstract.class.php");
class diaSchema extends exportRelationSchema
{
}
?>

View File

@@ -0,0 +1,7 @@
<?php
include_once("relationSchema.abstract.class.php");
class epsSchema extends exportRelationSchema
{
}
?>

View File

@@ -0,0 +1,7 @@
<?php
include_once("relationSchema.abstract.class.php");
class pdfSchema extends exportRelationSchema
{
}
?>

View File

@@ -0,0 +1,18 @@
<?php
// Using Abstract Factory Pattern for exporting relational Schema in different Formats !
abstract class exportRelationSchema
{
private $pageTitle; // Title of the page
private $autoLayoutType; // Internal or Foreign Key Relations;
public function setPageTitle($title)
{
$this->pageTitle=$title;
}
public function createPage()
{
}
}
?>

View File

@@ -0,0 +1,7 @@
<?php
include_once("relationSchema.abstract.class.php");
class svgSchema extends exportRelationSchema
{
}
?>

View File

@@ -0,0 +1,7 @@
<?php
include_once("relationSchema.abstract.class.php");
class visioSchema extends exportRelationSchema
{
}
?>