From: Leandro Lucarella Date: Sat, 17 May 2003 04:59:29 +0000 (+0000) Subject: Draft 3: X-Git-Tag: svn_import~59 X-Git-Url: https://git.llucax.com/software/bife/bife-all.git/commitdiff_plain/a4ee5812869c45aeec7bed6bbfeaf60a981209a8?hp=338962ee423f5d2515b34af79829e9f6b854a52b Draft 3: * Moved templates to a directory. * Added an initial Umbrello class diagram. * Added an initial xmi2code configuration file. * Added an initial template file for xmi2code. * Moved some functionality from BIFE_Base to a new class: BIFE_Container. * Renamed BIFE_Common to BIFE_Generic and made it extends BIFE_Container. --- diff --git a/bife.xmi b/bife.xmi new file mode 100644 index 0000000..ca1e6c1 --- /dev/null +++ b/bife.xmi @@ -0,0 +1,142 @@ + + + + + umbrello uml modeller http://uml.sf.net + 1.1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/index.php b/index.php index 439ab5f..aabb4e9 100644 --- a/index.php +++ b/index.php @@ -1,12 +1,12 @@ setErrorHandling(PEAR_ERROR_PRINT); $output = ''; @@ -70,24 +70,33 @@ class BIFE_Base { E_USER_ERROR); } - function addContents($contents) { + function process(&$template) { trigger_error('Method not implemented '.get_class($this). '::addContents().', E_USER_ERROR); } - function process(&$template) { +} + +class BIFE_Container extends BIFE_Base { + + function BIFE_Container() { + trigger_error('Can\'t instanciate abstract class BIFE_Container.', + E_USER_ERROR); + } + + function addContents($contents) { trigger_error('Method not implemented '.get_class($this). '::addContents().', E_USER_ERROR); } } -class BIFE_Common extends BIFE_Base { +class BIFE_Generic extends BIFE_Container { var $attrs; var $contents; - function BIFE_Common($attrs) { + function BIFE_Generic($attrs) { $this->attrs = $attrs; $this->contents = ''; } @@ -105,15 +114,15 @@ class BIFE_Common extends BIFE_Base { } -class BIFE_Page extends BIFE_Common { +class BIFE_Page extends BIFE_Generic { function BIFE_Page($attrs) { - $this->BIFE_Common($attrs); + $this->BIFE_Generic($attrs); } } -class BIFE_Title extends BIFE_Common { +class BIFE_Title extends BIFE_Generic { function BIFE_Title($attrs) { - $this->BIFE_Common($attrs); + $this->BIFE_Generic($attrs); } } diff --git a/template.php b/template.php new file mode 100644 index 0000000..3de96f6 --- /dev/null +++ b/template.php @@ -0,0 +1,27 @@ + + + +