the repository's root.
+++ /dev/null
-# vim: set noexpandtab tabstop=4 softtabstop=4 shiftwidth=4:
-# +--------------------------------------------------------------------+
-# | BIFE - Buil It FastEr |
-# +--------------------------------------------------------------------+
-# | This file is part of BIFE. |
-# | |
-# | BIFE is free software; you can redistribute it and/or modify it |
-# | under the terms of the GNU General Public License as published by |
-# | the Free Software Foundation; either version 2 of the License, or |
-# | (at your option) any later version. |
-# | |
-# | BIFE is distributed in the hope that it will be useful, but |
-# | WITHOUT ANY WARRANTY; without even the implied warranty of |
-# | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
-# | General Public License for more details. |
-# | |
-# | You should have received a copy of the GNU General Public License |
-# | along with Hooks; if not, write to the Free Software Foundation, |
-# | Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
-# +--------------------------------------------------------------------+
-# | Created: Mon May 19 00:16:56 ART 2003 |
-# | Authors: Leandro Lucarella <luca@lugmen.org.ar> |
-# +--------------------------------------------------------------------+
-#
-# $Id$
-#
-
-VERSION=0.10
-PHP_FILES=src/BIFE/*.php
-META_FILES=xmi2code.config xmi2code.tpl.php Makefile Doxyfile package.xml
-APIDOC_FILES=doc/api/* doc/api/*/*
-CORE_FILES=src/BIFE/Widget.php src/BIFE/Container.php src/BIFE/Root.php src/BIFE/Fallback.php src/BIFE/Parser.php
-X2C_TEMPLATE=xmi2code.tpl.php
-
-code: core/bife.xmi core/xmi2code.config
- cd core && xmi2code -a
-
-all: code doc pear-packages tarball
-
-doc: api
-
-api: Doxyfile $(PHP_FILES)
- doxygen
-
-clean-bak:
- find -name '*.bak' | xargs rm -vf
-
-clean-doc:
- rm -fvR doc/api/html doc/api/rtf doc/api/latex
-
-clean: clean-doc clean-backup
-
-tarball: bife.tar.gz
-
-bife.tar.gz: $(PHP_FILES) $(META_FILES)
- tar --exclude bife.tar.gz --exclude bife/doxygen.warn --exclude .svn --exclude '*.bak' --exclude '*.swp' --exclude 'bife/doc/api/*' -C .. -cvzf bife.tar.gz bife
-
-pear-packages: BIFE-$(VERSION).tgz
-
-BIFE-$(VERSION).tgz: $(PHP_FILES) package.xml
- pear package
-
-build/BIFE.php: $(CORE_FILES) $(X2C_TEMPLATE)
- @( \
- ( \
- cat $(X2C_TEMPLATE) | \
- grep -v '@@date' | \
- grep -v '$$Id' | \
- egrep -v '^//$$' \
- ); \
- echo '//'; \
- echo -n '// BIFE Core Version $(VERSION) - '; \
- date; \
- echo '//'; \
- ( \
- cat $(CORE_FILES) | \
- grep -v require_once | \
- grep -v '?>' | \
- grep -v '<?php' | \
- egrep -v '^\s*//' \
- ); \
- echo -n '?>' \
- ) > build/BIFE.php
+++ /dev/null
-<?php
-// vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4:
-// +--------------------------------------------------------------------+
-// | BIFE - Buil It FastEr |
-// +--------------------------------------------------------------------+
-// | This file is part of BIFE. |
-// | |
-// | BIFE is free software; you can redistribute it and/or modify it |
-// | under the terms of the GNU General Public License as published by |
-// | the Free Software Foundation; either version 2 of the License, or |
-// | (at your option) any later version. |
-// | |
-// | BIFE is distributed in the hope that it will be useful, but |
-// | WITHOUT ANY WARRANTY; without even the implied warranty of |
-// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
-// | General Public License for more details. |
-// | |
-// | You should have received a copy of the GNU General Public License |
-// | along with Hooks; if not, write to the Free Software Foundation, |
-// | Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
-// +--------------------------------------------------------------------+
-// | Created: Sun Jun 22 12:45:47 2003 |
-// | Authors: Leandro Lucarella <luca@lugmen.org.ar> |
-// +--------------------------------------------------------------------+
-//
-// $Id$
-//
-
-// +X2C includes
-require_once 'BIFE/Widget.php';
-// ~X2C
-
-// +X2C Class 151 :Pager
-/**
- * Album pager to an easier navigation when viewing photos.
- *
- * @access public
- */
-class BIFE_Album_Pager extends BIFE_Widget {
- // ~X2C
-
- // +X2C Operation 153
- /**
- * Constructor.
- *
- * @param array $attrs Attributes.
- *
- * @return void
- * @access public
- */
- function BIFE_Album_Pager($attrs) // ~X2C
- {
- trigger_error('Not implemented!', E_USER_WARNING);
- }
- // -X2C
-
- // +X2C Operation 154
- /**
- * Constructor.
- *
- * @param array $attrs Attributes.
- *
- * @return void
- * @access public
- */
- function __construct($attrs) // ~X2C
- {
- trigger_error('Not implemented!', E_USER_WARNING);
- }
- // -X2C
-
- // +X2C Operation 155
- /**
- * Renders the widget using a template returning a string with the results.
- *
- * @param HTML_Template_HIT &$template Template to use to render the widget.
- *
- * @return string
- * @access public
- */
- function render(&$template) // ~X2C
- {
- trigger_error('Not implemented!', E_USER_WARNING);
- }
- // -X2C
-
-} // -X2C Class :Pager
-
-?>
\ No newline at end of file
+++ /dev/null
-<?php
-// vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4:
-// +--------------------------------------------------------------------+
-// | BIFE - Buil It FastEr |
-// +--------------------------------------------------------------------+
-// | This file is part of BIFE. |
-// | |
-// | BIFE is free software; you can redistribute it and/or modify it |
-// | under the terms of the GNU General Public License as published by |
-// | the Free Software Foundation; either version 2 of the License, or |
-// | (at your option) any later version. |
-// | |
-// | BIFE is distributed in the hope that it will be useful, but |
-// | WITHOUT ANY WARRANTY; without even the implied warranty of |
-// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
-// | General Public License for more details. |
-// | |
-// | You should have received a copy of the GNU General Public License |
-// | along with Hooks; if not, write to the Free Software Foundation, |
-// | Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
-// +--------------------------------------------------------------------+
-// | Created: Sat May 24 00:54:15 2003 |
-// | Authors: Leandro Lucarella <luca@lugmen.org.ar> |
-// +--------------------------------------------------------------------+
-//
-// $Id$
-//
-
-// +X2C includes
-require_once 'BIFE/Widget.php';
-// ~X2C
-
-// +X2C Class 103 :Photo
-/**
- * Photo widget.
- *
- * @access public
- */
-class BIFE_Album_Photo extends BIFE_Widget {
- // ~X2C
-
- // +X2C Operation 108
- /**
- * Renders the widget using a template returning a string with the results.
- *
- * @param HTML_Template_HIT &$template Template to use to render the widget.
- *
- * @return string
- * @access public
- */
- function render(&$template) // ~X2C
- {
- $attrs['FILE'] = @$this->attrs['FILE'] ? $this->attrs['FILE'] : @$_REQUEST['BIFE_ALBUM_FILE'];
- $attrs['DESC'] = @$this->attrs['DESC'] ? $this->attrs['DESC'] : basename($attrs['FILE']);
- $out = $template->parse('photo', $attrs, '', 'album');
- return $out;
- }
- // -X2C
-
-} // -X2C Class :Photo
-
-?>
\ No newline at end of file
+++ /dev/null
-<?php
-// vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4:
-// +--------------------------------------------------------------------+
-// | BIFE - Buil It FastEr |
-// +--------------------------------------------------------------------+
-// | This file is part of BIFE. |
-// | |
-// | BIFE is free software; you can redistribute it and/or modify it |
-// | under the terms of the GNU General Public License as published by |
-// | the Free Software Foundation; either version 2 of the License, or |
-// | (at your option) any later version. |
-// | |
-// | BIFE is distributed in the hope that it will be useful, but |
-// | WITHOUT ANY WARRANTY; without even the implied warranty of |
-// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
-// | General Public License for more details. |
-// | |
-// | You should have received a copy of the GNU General Public License |
-// | along with Hooks; if not, write to the Free Software Foundation, |
-// | Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
-// +--------------------------------------------------------------------+
-// | Created: Wed May 17 18:16:54 ART 2003 |
-// | Authors: Leandro Lucarella <luca@lugmen.org.ar> |
-// +--------------------------------------------------------------------+
-//
-// $Id$
-//
-
-// +X2C includes
-require_once 'BIFE/Widget.php';
-// ~X2C
-
-require_once 'Image/Transform.php';
-
-// +X2C Class 20 :Thumbs
-/**
- * Photo album widget. [TODO: Make a better explanation]
- *
- * @access public
- */
-class BIFE_Album_Thumbs extends BIFE_Widget {
- // ~X2C
-
- // +X2C Operation 22
- /**
- * Constructor.
- *
- * @param array $attrs Attributes.
- *
- * @return void
- * @access public
- */
- function BIFE_Album_Thumbs($attrs) // ~X2C
- {
- $this->__construct($attrs);
- }
- // -X2C
-
- // +X2C Operation 57
- /**
- * Constructor.
- *
- * @param array $attrs Attributes.
- *
- * @return void
- * @access public
- */
- function __construct($attrs) // ~X2C
- {
- // TODO - get defaults from an INI file.
- $defaults = array(
- 'DIR' => '.',
- 'RECURSIVE' => true,
- 'THUMBSFORMAT' => 'jpeg',
- 'THUMBSDIR' => '.thumbs',
- 'EXTENSIONS' => 'png,jpg,jpeg,PNG,JPG,JPEG',
- 'MAXROWS' => 0,
- 'COLUMNS' => 4,
- 'LINK-BIFE' => 'photo.xbf',
- 'LINK-URL' => '',
- );
- $attrs = array_merge($defaults, $attrs);
- $attrs['EXTENSIONS'] = explode(',', $attrs['EXTENSIONS']);
- parent::__construct($attrs);
- }
- // -X2C
-
- // +X2C Operation 23
- /**
- * Renders the widget.
- *
- * @param HTML_Template_HIT &$template Template to use to render the widget.
- *
- * @return string
- * @access public
- */
- function render(&$template) // ~X2C
- {
- $template->pushGroup('album');
- $list = $this->getList();
- $tot = count($list);
- $rows = ceil($tot / $this->attrs['COLUMNS']);
- for ($row = 0; $row < $rows; $row++) {
- for ($col = 0; $col < $this->attrs['COLUMNS']; $col++) {
- $cur = $row * $this->attrs['COLUMNS'] + $col;
- if ($photo = @$list[$cur]) {
- if (is_null($photo['THUMB'])) {
- $photo['THUMB'] = $this->makeThumb($photo['FILE']);
- }
- $photo['URL'] = BIFE_Link::getURL(
- array(
- 'BIFE' => $this->attrs['LINK-BIFE'],
- 'URL' => $this->attrs['LINK-URL'],
- 'DATA-BIFE_ALBUM_FILE' => $photo['FILE'],
- )
- );
- $cell = $template->parse('item', $photo);
- } else {
- $cell = $template->parse('empty');
- }
- $template->parseBuffered('cell', 'CONTENTS', $cell);
- }
- $template->parseBuffered('row', 'CONTENTS',
- $template->popBuffer('cell'));
- }
- $out = $template->parse('body', array(
- 'DESC' => $this->getDescription(),
- 'CONTENTS' => $template->popBuffer('row')));
- $template->popGroup();
- return $out;
- }
- // -X2C
-
- // +X2C Operation 95
- /**
- * Gets a list of photos with their descriptions and thumbnails.
-Returns an array of associative arrays with this keys:
-<ul>
-<li><b>file:</b> Photo filename.</li>
-<li><b>desc:</b> Photo Description.</li>
-<li><b>thumb:</b> Photo thumbnail filename.</li>
-</ul>
- *
- * @return array
- * @access protected
- */
- function getList() // ~X2C
- {
- $root = $this->attrs['DIR'];
- $exts = $this->attrs['EXTENSIONS'];
- $format = $this->attrs['THUMBSFORMAT'];
- $return = array();
- $d = dir($root);
- if ($d) {
- while (($file = $d->read()) !== false) {
- list($path, $name, $ext) = $this->splitFilename("$root/$file");
- if (is_readable("$root/$file") and in_array($ext, $exts)) {
- $thumb = $this->getThumbFilename("$root/$file");
- $return[] = array(
- 'FILE' => "$root/$file",
- 'DESC' => $name,
- 'THUMB' => is_readable($thumb) ? $thumb : null,
- );
- }
- }
- $d->close();
- }
- return $return;
- }
- // -X2C
-
- // +X2C Operation 97
- /**
- * Creates an image thumbnail, returning his filename.
- *
- * @param string $filename Filename of the image to create the thumb.
- * @param int $size Maximum thumbnail size.
- *
- * @return string
- * @access protected
- */
- function makeThumb($filename, $size = 100) // ~X2C
- {
- $format = $this->attrs['THUMBSFORMAT'];
- $thumb = $this->getThumbFilename($filename);
- list($path, $name, $ext) = $this->splitFilename($thumb);
- $img =& Image_Transform::factory('GD');
- $img->load($filename);
- // If image is larger than the maximum size, we resize it.
- if ($img->img_x > $size or $img->img_y > $size ) {
- if (!@is_dir($path) and !@mkdir($path)) {
- return null;
- }
- if (PEAR::isError($img)) {
- return null;
- }
- if (!$img->scale($size)) {
- return null;
- }
- }
- $img->save("$path/$name.$format", $format);
- $img->free();
-
- return $thumb;
- }
- // -X2C
-
- // +X2C Operation 98
- /**
- * Returns the filename of an image thumb.
- *
- * @param string $filename Filename of the image to get the thumb name.
- *
- * @return string
- * @access protected
- */
- function getThumbFilename($filename) // ~X2C
- {
- $root = $this->attrs['DIR'];
- $format = $this->attrs['THUMBSFORMAT'];
- $thumbsdir = $this->attrs['THUMBSDIR'];
-
- list($path, $name, $ext) = $this->splitFilename($filename);
-
- return "$root/$thumbsdir/$name.$format";
- }
- // -X2C
-
- // +X2C Operation 102
- /**
- * Returns the description of the album.
- *
- * @return string
- * @access protected
- */
- function getDescription() // ~X2C
- {
- $root = $this->attrs['DIR'];
- return @join('', file($file));
- }
- // -X2C
-
- // +X2C Operation 100
- /**
- * Splits a filename returning an array with the path, name and extension.
- *
- * @param string $filename Filename to split.
- *
- * @return array
- * @access public
- * @static
- */
- function splitFilename($filename) // ~X2C
- {
- $path = explode('/', $filename);
- $file = array_pop($path);
- $ext = '';
- if (strstr($file, '.')) {
- preg_match('|([^/]+?)(\.([^\.]*))?$|', $file, $m);
- $file = @$m[1] . ((@$m[2] == '.' ) ? '.' : '');
- $ext = @$m[3];
- }
- $dir = count($path) ? join('/', $path) : '';
- return array($dir, $file, $ext);
- }
- // -X2C
-
-} // -X2C Class :Thumbs
-
-?>
\ No newline at end of file
+++ /dev/null
-# vim: set noexpandtab tabstop=4 softtabstop=4 shiftwidth=4:
-# +--------------------------------------------------------------------+
-# | BIFE - Buil It FastEr |
-# +--------------------------------------------------------------------+
-# | This file is part of BIFE. |
-# | |
-# | BIFE is free software; you can redistribute it and/or modify it |
-# | under the terms of the GNU General Public License as published by |
-# | the Free Software Foundation; either version 2 of the License, or |
-# | (at your option) any later version. |
-# | |
-# | BIFE is distributed in the hope that it will be useful, but |
-# | WITHOUT ANY WARRANTY; without even the implied warranty of |
-# | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
-# | General Public License for more details. |
-# | |
-# | You should have received a copy of the GNU General Public License |
-# | along with Hooks; if not, write to the Free Software Foundation, |
-# | Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
-# +--------------------------------------------------------------------+
-# | Created: Mon May 19 00:16:56 ART 2003 |
-# | Authors: Leandro Lucarella <luca@lugmen.org.ar> |
-# +--------------------------------------------------------------------+
-#
-# $Id$
-#
-
-MODULE=album
-
-code: $(MODULE).xmi xmi2code.config
- @xmi2code
-
-code-clean:
- @find -name '*.bak' | xargs rm -vf
-
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<XMI xmlns:UML="org.omg/standards/UML" verified="false" timestamp="" xmi.version="1.2" >
- <XMI.header>
- <XMI.documentation>
- <XMI.exporter>umbrello uml modeller http://uml.sf.net</XMI.exporter>
- <XMI.exporterVersion>1.1</XMI.exporterVersion>
- </XMI.documentation>
- <XMI.model xmi.name="album" href="/home/luca/website/www/test/bife/modules/album/album.xmi" />
- <XMI.metamodel xmi.name="UML" href="UML.xml" xmi.version="1.3" />
- </XMI.header>
- <XMI.content>
- <docsettings viewid="114" documentation="Parse XML data getting widgets." uniqueid="155" />
- <umlobjects>
- <UML:Class stereotype="" package="BIFE" xmi.id="3" abstract="1" documentation="Base widget class.
-x2c:extern" name="Widget" static="0" scope="200" />
- <UML:Class stereotype="" package="BIFE/Album" xmi.id="20" abstract="0" documentation="Photo album widget. [TODO: Make a better explanation]" name="Thumbs" static="0" scope="200" >
- <UML:Operation stereotype="" package="" xmi.id="22" type="void" abstract="0" documentation="Constructor." name="BIFE_Album_Thumbs" static="0" scope="200" >
- <UML:Parameter stereotype="" package="" xmi.id="1" value="" type="array" abstract="0" documentation="Attributes." name="attrs" static="0" scope="200" />
- </UML:Operation>
- <UML:Operation stereotype="" package="" xmi.id="57" type="void" abstract="0" documentation="Constructor." name="__construct" static="0" scope="200" >
- <UML:Parameter stereotype="" package="" xmi.id="1" value="" type="array" abstract="0" documentation="Attributes." name="attrs" static="0" scope="200" />
- </UML:Operation>
- <UML:Operation stereotype="" package="" xmi.id="23" type="string" abstract="0" documentation="Renders the widget." name="render" static="0" scope="200" >
- <UML:Parameter stereotype="" package="" xmi.id="1" value="" type="&HTML_Template_HIT" abstract="0" documentation="Template to use to render the widget." name="template" static="0" scope="200" />
- </UML:Operation>
- <UML:Operation stereotype="" package="" xmi.id="95" type="array" abstract="0" documentation="Gets a list of photos with their descriptions and thumbnails.
-
-Returns an array of associative arrays with this keys:
-<ul>
-<li><b>file:</b> Photo filename.</li>
-<li><b>desc:</b> Photo Description.</li>
-<li><b>thumb:</b> Photo thumbnail filename.</li>
-</ul>
-" name="getList" static="0" scope="202" />
- <UML:Operation stereotype="" package="" xmi.id="97" type="string" abstract="0" documentation="Creates an image thumbnail, returning his filename." name="makeThumb" static="0" scope="202" >
- <UML:Parameter stereotype="" package="" xmi.id="1" value="" type="string" abstract="0" documentation="Filename of the image to create the thumb." name="filename" static="0" scope="200" />
- <UML:Parameter stereotype="" package="" xmi.id="2" value="100" type="int" abstract="0" documentation="Maximum thumbnail size." name="size" static="0" scope="200" />
- </UML:Operation>
- <UML:Operation stereotype="" package="" xmi.id="98" type="string" abstract="0" documentation="Returns the filename of an image thumb." name="getThumbFilename" static="0" scope="202" >
- <UML:Parameter stereotype="" package="" xmi.id="1" value="" type="string" abstract="0" documentation="Filename of the image to get the thumb name." name="filename" static="0" scope="200" />
- </UML:Operation>
- <UML:Operation stereotype="" package="" xmi.id="102" type="string" abstract="0" documentation="Returns the description of the album." name="getDescription" static="0" scope="202" />
- <UML:Operation stereotype="" package="" xmi.id="100" type="array" abstract="0" documentation="Splits a filename returning an array with the path, name and extension." name="splitFilename" static="1" scope="200" >
- <UML:Parameter stereotype="" package="" xmi.id="1" value="" type="string" abstract="0" documentation="Filename to split." name="filename" static="0" scope="200" />
- </UML:Operation>
- </UML:Class>
- <UML:Class stereotype="" package="BIFE/Album" xmi.id="103" abstract="0" documentation="Photo widget." name="Photo" static="0" scope="200" >
- <UML:Operation stereotype="" package="" xmi.id="108" type="string" abstract="0" documentation="Renders the widget using a template returning a string with the results." name="render" static="0" scope="200" >
- <UML:Parameter stereotype="" package="" xmi.id="1" value="" type="&HTML_Template_HIT" abstract="0" documentation="Template to use to render the widget." name="template" static="0" scope="200" />
- </UML:Operation>
- </UML:Class>
- <UML:Class stereotype="" package="BIFE/Album" xmi.id="151" abstract="0" documentation="Album pager to an easier navigation when viewing photos." name="Pager" static="0" scope="200" >
- <UML:Operation stereotype="" package="" xmi.id="153" type="void" abstract="0" documentation="Constructor." name="BIFE_Album_Pager" static="0" scope="200" >
- <UML:Parameter stereotype="" package="" xmi.id="1" value="" type="array" abstract="0" documentation="Attributes." name="attrs" static="0" scope="200" />
- </UML:Operation>
- <UML:Operation stereotype="" package="" xmi.id="154" type="void" abstract="0" documentation="Constructor." name="__construct" static="0" scope="200" >
- <UML:Parameter stereotype="" package="" xmi.id="1" value="" type="array" abstract="0" documentation="Attributes." name="attrs" static="0" scope="200" />
- </UML:Operation>
- <UML:Operation stereotype="" package="" xmi.id="155" type="string" abstract="0" documentation="Renders the widget using a template returning a string with the results." name="render" static="0" scope="200" >
- <UML:Parameter stereotype="" package="" xmi.id="1" value="" type="&HTML_Template_HIT" abstract="0" documentation="Template to use to render the widget." name="template" static="0" scope="200" />
- </UML:Operation>
- </UML:Class>
- </umlobjects>
- <diagrams>
- <diagram snapgrid="0" showattsig="1" fillcolor="#ffffc0" showgrid="1" showopsig="0" usefillcolor="1" snapx="10" snapy="10" showatts="1" xmi.id="114" documentation="" type="402" showops="1" showpackage="1" name="Album Classes" localid="30000" showstereotype="0" showscope="1" font="Helvetica,9,-1,5,48,0,0,0,0,0" linecolor="#ff0000" >
- <widgets>
- <UML:ConceptWidget usesdiagramfillcolour="0" width="90" showattsigs="600" usesdiagramusefillcolour="0" x="222" linecolour="#ff0000" y="23" showopsigs="600" usesdiagramlinecolour="0" fillcolour="#dcdcdc" height="25" usefillcolor="1" showattributes="0" xmi.id="3" showoperations="0" showpackage="1" showscope="1" showstereotype="0" font="Helvetica,9,-1,5,48,0,0,0,0,0" />
- <UML:ConceptWidget usesdiagramfillcolour="0" width="161" showattsigs="601" usesdiagramusefillcolour="0" x="22" linecolour="#ff0000" y="175" showopsigs="600" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="142" usefillcolor="1" showattributes="1" xmi.id="20" showoperations="1" showpackage="1" showscope="1" showstereotype="0" font="Helvetica,9,-1,5,48,0,0,0,0,0" />
- <UML:ConceptWidget usesdiagramfillcolour="0" width="126" showattsigs="601" usesdiagramusefillcolour="0" x="204" linecolour="#ff0000" y="175" showopsigs="600" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="37" usefillcolor="1" showattributes="1" xmi.id="103" showoperations="1" showpackage="1" showscope="1" showstereotype="0" font="Helvetica,9,-1,5,48,0,0,0,0,0" />
- <UML:ConceptWidget usesdiagramfillcolour="0" width="148" showattsigs="601" usesdiagramusefillcolour="0" x="352" linecolour="#ff0000" y="175" showopsigs="600" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="67" usefillcolor="1" showattributes="1" xmi.id="151" showoperations="1" showpackage="1" showscope="1" showstereotype="0" font="Helvetica,9,-1,5,48,0,0,0,0,0" />
- </widgets>
- <messages/>
- <associations>
- <UML:AssocWidget totalcounta="2" indexa="1" totalcountb="4" indexb="1" widgetbid="3" widgetaid="20" documentation="" type="500" >
- <linepath>
- <startpoint startx="102" starty="175" />
- <endpoint endx="244" endy="48" />
- </linepath>
- </UML:AssocWidget>
- <UML:AssocWidget totalcounta="2" indexa="1" totalcountb="4" indexb="2" widgetbid="3" widgetaid="103" documentation="" type="500" >
- <linepath>
- <startpoint startx="267" starty="175" />
- <endpoint endx="267" endy="48" />
- </linepath>
- </UML:AssocWidget>
- <UML:AssocWidget totalcounta="2" indexa="1" totalcountb="4" indexb="3" widgetbid="3" widgetaid="151" documentation="" type="500" >
- <linepath>
- <startpoint startx="426" starty="175" />
- <endpoint endx="289" endy="48" />
- </linepath>
- </UML:AssocWidget>
- </associations>
- </diagram>
- </diagrams>
- <listview>
- <listitem open="1" type="800" id="-1" label="Views" >
- <listitem open="1" type="801" id="-1" label="Logical View" >
- <listitem open="1" type="803" id="-1" label="Album" >
- <listitem open="1" type="807" id="114" label="Album Classes" />
- <listitem open="0" type="813" id="151" label="Pager" >
- <listitem open="0" type="815" id="153" label="BIFE_Album_Pager" />
- <listitem open="0" type="815" id="154" label="__construct" />
- <listitem open="0" type="815" id="155" label="render" />
- </listitem>
- <listitem open="0" type="813" id="103" label="Photo" >
- <listitem open="0" type="815" id="108" label="render" />
- </listitem>
- <listitem open="0" type="813" id="20" label="Thumbs" >
- <listitem open="0" type="815" id="22" label="BIFE_Album_Thumbs" />
- <listitem open="0" type="815" id="57" label="__construct" />
- <listitem open="0" type="815" id="102" label="getDescription" />
- <listitem open="0" type="815" id="95" label="getList" />
- <listitem open="0" type="815" id="98" label="getThumbFilename" />
- <listitem open="0" type="815" id="97" label="makeThumb" />
- <listitem open="0" type="815" id="23" label="render" />
- <listitem open="0" type="815" id="100" label="splitFilename" />
- </listitem>
- </listitem>
- <listitem open="1" type="803" id="-1" label="BIFE" >
- <listitem open="0" type="813" id="3" label="Widget" />
- </listitem>
- </listitem>
- <listitem open="1" type="802" id="-1" label="Use Case View" />
- </listitem>
- </listview>
- </XMI.content>
-</XMI>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- ! vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4:
- ! **********************************************************************
- ! * BIFE * Buil It FastEr *
- ! **********************************************************************
- ! * This file is part of BIFE. *
- ! * *
- ! * BIFE is free software; you can redistribute it and/or modify it *
- ! * under the terms of the GNU General Public License as published by *
- ! * the Free Software Foundation; either version 2 of the License, or *
- ! * (at your option) any later version. *
- ! * *
- ! * BIFE is distributed in the hope that it will be useful, but *
- ! * WITHOUT ANY WARRANTY; without even the implied warranty of *
- ! * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
- ! * General Public License for more details. *
- ! * *
- ! * You should have received a copy of the GNU General Public License *
- ! * along with Hooks; if not, write to the Free Software Foundation, *
- ! * Inc., 59 Temple Place, Suite 330, Boston, MA 02111*1307 USA *
- ! **********************************************************************
- ! * Created: Mon May 19 00:16:56 ART 2003 *
- ! * Authors: Leandro Lucarella <luca@lugmen.org.ar> *
- ! *********************************************************************+
- !
- ! $Id$
- !
- !-->
-
-<xmi2code>
- <option key="target" value="*"/>
- <option key="xmi-input" value="album.xmi"/>
- <option key="config-file" value="xmi2code.config"/>
- <option key="config-file-set" value="false"/>
- <option key="handler" value="umbrello"/>
- <option key="generator-path" value="."/>
- <option key="use-package-as-dir" value="true"/>
- <option key="indent" value=" "/>
- <option key="files-case" value="preserve"/>
- <option key="generator" value="php.pear"/>
- <option key="template-path" value="../.."/>
- <option key="php.template" value="xmi2code.tpl.php"/>
- <option key="php.default-code" value="trigger_error('Not implemented!', E_USER_WARNING);"/>
- <option key="php.pear.use-package-in-classnames" value="true"/>
- <option key="php.pear.underscore-in-nonpublic" value="false"/>
-</xmi2code>
+++ /dev/null
-<?php
-// vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4:
-// +--------------------------------------------------------------------+
-// | BIFE - Buil It FastEr |
-// +--------------------------------------------------------------------+
-// | This file is part of BIFE. |
-// | |
-// | BIFE is free software; you can redistribute it and/or modify it |
-// | under the terms of the GNU General Public License as published by |
-// | the Free Software Foundation; either version 2 of the License, or |
-// | (at your option) any later version. |
-// | |
-// | BIFE is distributed in the hope that it will be useful, but |
-// | WITHOUT ANY WARRANTY; without even the implied warranty of |
-// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
-// | General Public License for more details. |
-// | |
-// | You should have received a copy of the GNU General Public License |
-// | along with Hooks; if not, write to the Free Software Foundation, |
-// | Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
-// +--------------------------------------------------------------------+
-// | Created: Sun Jun 1 20:00:20 2003 |
-// | Authors: Leandro Lucarella <luca@lugmen.org.ar> |
-// +--------------------------------------------------------------------+
-//
-// $Id$
-//
-
-// +X2C includes
-require_once 'BIFE/Container.php';
-// ~X2C
-
-// +X2C Class 110 :Link
-/**
- * Link to another page.
- *
- * @access public
- */
-class BIFE_Link extends BIFE_Container {
- // ~X2C
-
- // +X2C Operation 111
- /**
- * Constructor.
- *
- * @param array $attrs Attributes.
- *
- * @return void
- * @access public
- */
- function BIFE_Link($attrs) // ~X2C
- {
- $this->__construct($attrs);
- }
- // -X2C
-
- // +X2C Operation 112
- /**
- * Constructor.
- *
- * @param array $attrs Attributes.
- *
- * @return void
- * @access public
- */
- function __construct($attrs) // ~X2C
- {
- $link_attrs['URL'] = $this->getURL($attrs);
- $link_attrs['DESC'] = @$attrs['DESC'];
- $link_attrs['TARGET'] = @$attrs['TARGET'];
- parent::__construct($link_attrs);
- }
- // -X2C
-
- // +X2C Operation 142
- /**
- * Gets a URL string based on Link attributes.
- *
- * @param array $attrs Link attributes.
- *
- * @return string
- * @access public
- */
- function getURL($attrs) // ~X2C
- {
- $url = @$attrs['URL'];
- unset($attrs['URL']);
- if (isset($attrs['BIFE'])) {
- $attrs['DATA-BIFE'] = $attrs['BIFE'];
- unset($attrs['BIFE']);
- }
- $query = array();
- foreach($attrs as $name => $value) {
- if (substr($name, 0, 5) === 'DATA-') {
- if ($name = substr($name, 5)) {
- $query[] = urlencode($name) . '=' . urlencode($value);
- }
- }
- }
- if ($query) {
- $url .= '?' . join('&', $query);
- }
- return $url;
- }
- // -X2C
-
- // +X2C Operation 157
- /**
- * Renders the widget.
- *
- * @param HTML_Template_HIT &$template Template to use to render the widget.
- *
- * @return string
- * @access public
- */
- function render(&$template) // ~X2C
- {
- $this->attrs['CONTENTS'] = $this->renderContents($template);
- return $template->parse('bife_link', $this->attrs, '', '');
- }
- // -X2C
-
-} // -X2C Class :Link
-
-?>
\ No newline at end of file
+++ /dev/null
-<?php
-// vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4:
-// +--------------------------------------------------------------------+
-// | BIFE - Buil It FastEr |
-// +--------------------------------------------------------------------+
-// | This file is part of BIFE. |
-// | |
-// | BIFE is free software; you can redistribute it and/or modify it |
-// | under the terms of the GNU General Public License as published by |
-// | the Free Software Foundation; either version 2 of the License, or |
-// | (at your option) any later version. |
-// | |
-// | BIFE is distributed in the hope that it will be useful, but |
-// | WITHOUT ANY WARRANTY; without even the implied warranty of |
-// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
-// | General Public License for more details. |
-// | |
-// | You should have received a copy of the GNU General Public License |
-// | along with Hooks; if not, write to the Free Software Foundation, |
-// | Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
-// +--------------------------------------------------------------------+
-// | Created: Wed May 17 18:16:54 ART 2003 |
-// | Authors: Leandro Lucarella <luca@lugmen.org.ar> |
-// +--------------------------------------------------------------------+
-//
-// $Id$
-//
-
-// +X2C includes
-require_once 'BIFE/Fallback.php';
-// ~X2C
-
-// +X2C Class 7 :Translate
-/**
- * This is a generic and simple (but very usefull) BIFE_Fallback implementation. Translate widgets using a template with it's name, prepended with 'bife_'.
- *
- * @access public
- */
-class BIFE_Translate extends BIFE_Fallback {
- // ~X2C
-
- // +X2C Operation 12
- /**
- * Renders the widget.
- *
- * @param HTML_Template_HIT &$template Template to use to render the widget.
- *
- * @return string
- * @access public
- */
- function render(&$template) // ~X2C
- {
- $this->attrs['CONTENTS'] = $this->renderContents($template);
- $name = "bife_{$this->name}";
- if ($template->exists($name, '')) {
- $out = $template->parse($name, $this->attrs, '', '');
- } else {
- $name = $this->name;
- $out = "<$name";
- foreach ($this->attrs as $attr => $val) {
- $out .= sprintf(' %s="%s"', $attr, $val);
- }
- $contents = $this->renderContents($template);
- if ($contents !== '') {
- $out .= ">$contents</$name>";
- } else {
- $out .= "/>";
- }
- }
- return $out;
- }
- // -X2C
-
-} // -X2C Class :Translate
-
-?>
\ No newline at end of file
+++ /dev/null
-# vim: set noexpandtab tabstop=4 softtabstop=4 shiftwidth=4:
-# +--------------------------------------------------------------------+
-# | BIFE - Buil It FastEr |
-# +--------------------------------------------------------------------+
-# | This file is part of BIFE. |
-# | |
-# | BIFE is free software; you can redistribute it and/or modify it |
-# | under the terms of the GNU General Public License as published by |
-# | the Free Software Foundation; either version 2 of the License, or |
-# | (at your option) any later version. |
-# | |
-# | BIFE is distributed in the hope that it will be useful, but |
-# | WITHOUT ANY WARRANTY; without even the implied warranty of |
-# | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
-# | General Public License for more details. |
-# | |
-# | You should have received a copy of the GNU General Public License |
-# | along with Hooks; if not, write to the Free Software Foundation, |
-# | Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
-# +--------------------------------------------------------------------+
-# | Created: Mon May 19 00:16:56 ART 2003 |
-# | Authors: Leandro Lucarella <luca@lugmen.org.ar> |
-# +--------------------------------------------------------------------+
-#
-# $Id$
-#
-
-MODULE=basic
-
-code: $(MODULE).xmi xmi2code.config
- @xmi2code
-
-code-clean:
- @find -name '*.bak' | xargs rm -vf
-
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<XMI xmlns:UML="org.omg/standards/UML" verified="false" timestamp="" xmi.version="1.2" >
- <XMI.header>
- <XMI.documentation>
- <XMI.exporter>umbrello uml modeller http://uml.sf.net</XMI.exporter>
- <XMI.exporterVersion>1.1</XMI.exporterVersion>
- </XMI.documentation>
- <XMI.model xmi.name="basic" href="/home/luca/website/www/test/bife/modules/basic/basic.xmi" />
- <XMI.metamodel xmi.name="UML" href="UML.xml" xmi.version="1.3" />
- </XMI.header>
- <XMI.content>
- <docsettings viewid="113" documentation="Parse XML data getting widgets." uniqueid="157" />
- <umlobjects>
- <UML:Class stereotype="" package="BIFE" xmi.id="5" abstract="1" documentation="Base container widget class.
-x2c:extern" name="Container" static="0" scope="200" />
- <UML:Class stereotype="" package="BIFE" xmi.id="7" abstract="0" documentation="This is a generic and simple (but very usefull) BIFE_Fallback implementation. Translate widgets using a template with it's name, prepended with 'bife_'. If not template is found, it copy the XML to the output." name="Translate" static="0" scope="200" >
- <UML:Operation stereotype="" package="" xmi.id="12" type="string" abstract="0" documentation="Renders the widget." name="render" static="0" scope="200" >
- <UML:Parameter stereotype="" package="" xmi.id="1" value="" type="&HTML_Template_HIT" abstract="0" documentation="Template to use to render the widget." name="template" static="0" scope="200" />
- </UML:Operation>
- </UML:Class>
- <UML:Class stereotype="" package="BIFE" xmi.id="61" abstract="1" documentation="Fallback widget to use when no specific widget is implemented.
-x2c:extern" name="Fallback" static="0" scope="200" />
- <UML:Class stereotype="" package="BIFE" xmi.id="110" abstract="0" documentation="Link to another page." name="Link" static="0" scope="200" >
- <UML:Operation stereotype="" package="" xmi.id="111" type="void" abstract="0" documentation="Constructor." name="BIFE_Link" static="0" scope="200" >
- <UML:Parameter stereotype="" package="" xmi.id="1" value="" type="array" abstract="0" documentation="Attributes." name="attrs" static="0" scope="200" />
- </UML:Operation>
- <UML:Operation stereotype="" package="" xmi.id="112" type="void" abstract="0" documentation="Constructor." name="__construct" static="0" scope="200" >
- <UML:Parameter stereotype="" package="" xmi.id="1" value="" type="array" abstract="0" documentation="Attributes." name="attrs" static="0" scope="200" />
- </UML:Operation>
- <UML:Operation stereotype="" package="" xmi.id="142" type="string" abstract="0" documentation="Gets a URL string based on Link attributes." name="getURL" static="0" scope="200" >
- <UML:Parameter stereotype="" package="" xmi.id="1" value="" type="array" abstract="0" documentation="Link attributes." name="attrs" static="0" scope="200" />
- </UML:Operation>
- <UML:Operation stereotype="" package="" xmi.id="157" type="string" abstract="0" documentation="Renders the widget." name="render" static="0" scope="200" >
- <UML:Parameter stereotype="" package="" xmi.id="1" value="" type="&HTML_Template_HIT" abstract="0" documentation="Template to use to render the widget." name="template" static="0" scope="200" />
- </UML:Operation>
- </UML:Class>
- </umlobjects>
- <diagrams>
- <diagram snapgrid="0" showattsig="1" fillcolor="#ffffc0" showgrid="1" showopsig="0" usefillcolor="1" snapx="10" snapy="10" showatts="1" xmi.id="113" documentation="Class diagram for the basic classes." type="402" showops="1" showpackage="1" name="Basic Classes" localid="30000" showstereotype="0" showscope="1" font="Helvetica,9,-1,5,48,0,0,0,0,0" linecolor="#ff0000" >
- <widgets>
- <UML:ConceptWidget usesdiagramfillcolour="0" width="104" showattsigs="601" usesdiagramusefillcolour="0" x="184" linecolour="#ff0000" y="110" showopsigs="600" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="37" usefillcolor="1" showattributes="1" xmi.id="7" showoperations="1" showpackage="1" showscope="1" showstereotype="0" font="Helvetica,9,-1,5,48,0,0,0,0,0" />
- <UML:ConceptWidget usesdiagramfillcolour="0" width="107" showattsigs="601" usesdiagramusefillcolour="0" x="40" linecolour="#ff0000" y="110" showopsigs="600" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="82" usefillcolor="1" showattributes="1" xmi.id="110" showoperations="1" showpackage="1" showscope="1" showstereotype="0" font="Helvetica,9,-1,5,48,0,0,0,0,0" />
- <UML:ConceptWidget usesdiagramfillcolour="0" width="97" showattsigs="600" usesdiagramusefillcolour="0" x="188" linecolour="#ff0000" y="30" showopsigs="600" usesdiagramlinecolour="0" fillcolour="#dcdcdc" height="25" usefillcolor="1" showattributes="0" xmi.id="61" showoperations="0" showpackage="1" showscope="1" showstereotype="0" font="Helvetica,9,-1,5,48,0,0,0,0,0" />
- <UML:ConceptWidget usesdiagramfillcolour="0" width="106" showattsigs="601" usesdiagramusefillcolour="0" x="40" linecolour="#ff0000" y="30" showopsigs="600" usesdiagramlinecolour="0" fillcolour="#dcdcdc" height="25" usefillcolor="1" showattributes="0" xmi.id="5" showoperations="0" showpackage="1" showscope="1" showstereotype="0" font="Helvetica,9,-1,5,48,0,0,0,0,0" />
- </widgets>
- <messages/>
- <associations>
- <UML:AssocWidget totalcounta="2" indexa="1" totalcountb="2" indexb="1" widgetbid="61" widgetaid="7" documentation="" type="500" >
- <linepath>
- <startpoint startx="236" starty="110" />
- <endpoint endx="236" endy="55" />
- </linepath>
- </UML:AssocWidget>
- <UML:AssocWidget totalcounta="2" indexa="1" totalcountb="2" indexb="1" widgetbid="5" widgetaid="110" documentation="" type="500" >
- <linepath>
- <startpoint startx="93" starty="110" />
- <endpoint endx="93" endy="55" />
- </linepath>
- </UML:AssocWidget>
- </associations>
- </diagram>
- </diagrams>
- <listview>
- <listitem open="1" type="800" id="-1" label="Views" >
- <listitem open="1" type="801" id="-1" label="Logical View" >
- <listitem open="1" type="803" id="-1" label="BIFE" >
- <listitem open="0" type="813" id="5" label="Container" />
- <listitem open="0" type="813" id="61" label="Fallback" />
- </listitem>
- <listitem open="1" type="803" id="-1" label="Basic" >
- <listitem open="0" type="807" id="113" label="Basic Classes" />
- <listitem open="0" type="813" id="110" label="Link" >
- <listitem open="0" type="815" id="111" label="BIFE_Link" />
- <listitem open="0" type="815" id="112" label="__construct" />
- <listitem open="0" type="815" id="142" label="getURL" />
- <listitem open="0" type="815" id="157" label="render" />
- </listitem>
- <listitem open="0" type="813" id="7" label="Translate" >
- <listitem open="0" type="815" id="12" label="render" />
- </listitem>
- </listitem>
- </listitem>
- <listitem open="1" type="802" id="-1" label="Use Case View" />
- </listitem>
- </listview>
- </XMI.content>
-</XMI>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- ! vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4:
- ! **********************************************************************
- ! * BIFE * Buil It FastEr *
- ! **********************************************************************
- ! * This file is part of BIFE. *
- ! * *
- ! * BIFE is free software; you can redistribute it and/or modify it *
- ! * under the terms of the GNU General Public License as published by *
- ! * the Free Software Foundation; either version 2 of the License, or *
- ! * (at your option) any later version. *
- ! * *
- ! * BIFE is distributed in the hope that it will be useful, but *
- ! * WITHOUT ANY WARRANTY; without even the implied warranty of *
- ! * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
- ! * General Public License for more details. *
- ! * *
- ! * You should have received a copy of the GNU General Public License *
- ! * along with Hooks; if not, write to the Free Software Foundation, *
- ! * Inc., 59 Temple Place, Suite 330, Boston, MA 02111*1307 USA *
- ! **********************************************************************
- ! * Created: Mon May 19 00:16:56 ART 2003 *
- ! * Authors: Leandro Lucarella <luca@lugmen.org.ar> *
- ! *********************************************************************+
- !
- ! $Id$
- !
- !-->
-
-<xmi2code>
- <option key="target" value="*"/>
- <option key="xmi-input" value="basic.xmi"/>
- <option key="config-file" value="xmi2code.config"/>
- <option key="config-file-set" value="false"/>
- <option key="handler" value="umbrello"/>
- <option key="generator-path" value="."/>
- <option key="use-package-as-dir" value="true"/>
- <option key="indent" value=" "/>
- <option key="files-case" value="preserve"/>
- <option key="generator" value="php.pear"/>
- <option key="template-path" value="../.."/>
- <option key="php.template" value="xmi2code.tpl.php"/>
- <option key="php.default-code" value="trigger_error('Not implemented!', E_USER_WARNING);"/>
- <option key="php.pear.use-package-in-classnames" value="true"/>
- <option key="php.pear.underscore-in-nonpublic" value="false"/>
-</xmi2code>
+++ /dev/null
-<?php
-// vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4:
-// +--------------------------------------------------------------------+
-// | BIFE - Buil It FastEr |
-// +--------------------------------------------------------------------+
-// | This file is part of BIFE. |
-// | |
-// | BIFE is free software; you can redistribute it and/or modify it |
-// | under the terms of the GNU General Public License as published by |
-// | the Free Software Foundation; either version 2 of the License, or |
-// | (at your option) any later version. |
-// | |
-// | BIFE is distributed in the hope that it will be useful, but |
-// | WITHOUT ANY WARRANTY; without even the implied warranty of |
-// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
-// | General Public License for more details. |
-// | |
-// | You should have received a copy of the GNU General Public License |
-// | along with Hooks; if not, write to the Free Software Foundation, |
-// | Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
-// +--------------------------------------------------------------------+
-// | Created: Sun Jun 8 20:03:30 2003 |
-// | Authors: Leandro Lucarella <luca@lugmen.org.ar> |
-// +--------------------------------------------------------------------+
-//
-// $Id$
-//
-
-// +X2C includes
-require_once 'BIFE/Widget.php';
-// ~X2C
-
-// +X2C Class 115 :Menu
-/**
- * Dynamic Menu.
- *
- * @access public
- */
-class BIFE_Menu_Menu extends BIFE_Widget {
- // ~X2C
-
- // +X2C Operation 117
- /**
- * Renders the widget using a template returning a string with the results.
- *
- * @param HTML_Template_HIT &$template Template to use to render the widget.
- *
- * @return string
- * @access public
- */
- function render(&$template) // ~X2C
- {
- trigger_error('Not implemented!', E_USER_WARNING);
- }
- // -X2C
-
- // +X2C Operation 121
- /**
- * Constructor.
- *
- * @param array $attrs Attributes.
- *
- * @return void
- * @access public
- */
- function BIFE_Menu_Menu($attrs) // ~X2C
- {
- trigger_error('Not implemented!', E_USER_WARNING);
- }
- // -X2C
-
- // +X2C Operation 122
- /**
- * Constructor.
- *
- * @param array $attrs Attributes.
- *
- * @return void
- * @access public
- */
- function __construct($attrs) // ~X2C
- {
- trigger_error('Not implemented!', E_USER_WARNING);
- }
- // -X2C
-
-} // -X2C Class :Menu
-
-?>
\ No newline at end of file
+++ /dev/null
-# vim: set noexpandtab tabstop=4 softtabstop=4 shiftwidth=4:
-# +--------------------------------------------------------------------+
-# | BIFE - Buil It FastEr |
-# +--------------------------------------------------------------------+
-# | This file is part of BIFE. |
-# | |
-# | BIFE is free software; you can redistribute it and/or modify it |
-# | under the terms of the GNU General Public License as published by |
-# | the Free Software Foundation; either version 2 of the License, or |
-# | (at your option) any later version. |
-# | |
-# | BIFE is distributed in the hope that it will be useful, but |
-# | WITHOUT ANY WARRANTY; without even the implied warranty of |
-# | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
-# | General Public License for more details. |
-# | |
-# | You should have received a copy of the GNU General Public License |
-# | along with Hooks; if not, write to the Free Software Foundation, |
-# | Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
-# +--------------------------------------------------------------------+
-# | Created: Mon May 19 00:16:56 ART 2003 |
-# | Authors: Leandro Lucarella <luca@lugmen.org.ar> |
-# +--------------------------------------------------------------------+
-#
-# $Id$
-#
-
-MODULE=menu
-
-code: $(MODULE).xmi xmi2code.config
- @xmi2code
-
-code-clean:
- @find -name '*.bak' | xargs rm -vf
-
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<XMI xmlns:UML="org.omg/standards/UML" verified="false" timestamp="" xmi.version="1.2" >
- <XMI.header>
- <XMI.documentation>
- <XMI.exporter>umbrello uml modeller http://uml.sf.net</XMI.exporter>
- <XMI.exporterVersion>1.1</XMI.exporterVersion>
- </XMI.documentation>
- <XMI.model xmi.name="menu" href="/home/luca/website/www/test/bife/modules/menu/menu.xmi" />
- <XMI.metamodel xmi.name="UML" href="UML.xml" xmi.version="1.3" />
- </XMI.header>
- <XMI.content>
- <docsettings viewid="116" documentation="Parse XML data getting widgets." uniqueid="156" />
- <umlobjects>
- <UML:Class stereotype="" package="BIFE" xmi.id="3" abstract="1" documentation="Base widget class.
-x2c:extern" name="Widget" static="0" scope="200" />
- <UML:Class stereotype="" package="BIFE/Menu" xmi.id="115" abstract="0" documentation="Dynamic Menu." name="Menu" static="0" scope="200" >
- <UML:Operation stereotype="" package="" xmi.id="121" type="void" abstract="0" documentation="Constructor." name="BIFE_Menu_Menu" static="0" scope="200" >
- <UML:Parameter stereotype="" package="" xmi.id="1" value="" type="array" abstract="0" documentation="Attributes." name="attrs" static="0" scope="200" />
- </UML:Operation>
- <UML:Operation stereotype="" package="" xmi.id="122" type="void" abstract="0" documentation="Constructor." name="__construct" static="0" scope="200" >
- <UML:Parameter stereotype="" package="" xmi.id="1" value="" type="array" abstract="0" documentation="Attributes." name="attrs" static="0" scope="200" />
- </UML:Operation>
- <UML:Operation stereotype="" package="" xmi.id="117" type="string" abstract="0" documentation="Renders the widget using a template returning a string with the results." name="render" static="0" scope="200" >
- <UML:Parameter stereotype="" package="" xmi.id="1" value="" type="&HTML_Template_HIT" abstract="0" documentation="Template to use to render the widget." name="template" static="0" scope="200" />
- </UML:Operation>
- </UML:Class>
- </umlobjects>
- <diagrams>
- <diagram snapgrid="0" showattsig="1" fillcolor="#ffffc0" showgrid="1" showopsig="0" usefillcolor="1" snapx="10" snapy="10" showatts="1" xmi.id="116" documentation="" type="402" showops="1" showpackage="1" name="Menu Classes" localid="30000" showstereotype="0" showscope="1" font="Helvetica,9,-1,5,48,0,0,0,0,0" linecolor="#ff0000" >
- <widgets>
- <UML:ConceptWidget usesdiagramfillcolour="0" width="145" showattsigs="601" usesdiagramusefillcolour="0" x="50" linecolour="#ff0000" y="137" showopsigs="600" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="67" usefillcolor="1" showattributes="1" xmi.id="115" showoperations="1" showpackage="1" showscope="1" showstereotype="0" font="Helvetica,9,-1,5,48,0,0,0,0,0" />
- <UML:ConceptWidget usesdiagramfillcolour="0" width="90" showattsigs="600" usesdiagramusefillcolour="0" x="77" linecolour="#ff0000" y="51" showopsigs="600" usesdiagramlinecolour="0" fillcolour="#dcdcdc" height="25" usefillcolor="1" showattributes="0" xmi.id="3" showoperations="0" showpackage="1" showscope="1" showstereotype="0" font="Helvetica,9,-1,5,48,0,0,0,0,0" />
- </widgets>
- <messages/>
- <associations>
- <UML:AssocWidget totalcounta="2" indexa="1" totalcountb="2" indexb="1" widgetbid="3" widgetaid="115" documentation="" type="500" >
- <linepath>
- <startpoint startx="122" starty="137" />
- <endpoint endx="122" endy="76" />
- </linepath>
- </UML:AssocWidget>
- </associations>
- </diagram>
- </diagrams>
- <listview>
- <listitem open="1" type="800" id="-1" label="Views" >
- <listitem open="1" type="801" id="-1" label="Logical View" >
- <listitem open="1" type="803" id="-1" label="BIFE" >
- <listitem open="0" type="813" id="3" label="Widget" />
- </listitem>
- <listitem open="1" type="803" id="-1" label="Menu" >
- <listitem open="0" type="813" id="115" label="Menu" >
- <listitem open="0" type="815" id="121" label="BIFE_Menu_Menu" />
- <listitem open="0" type="815" id="122" label="__construct" />
- <listitem open="1" type="815" id="117" label="render" />
- </listitem>
- <listitem open="1" type="807" id="116" label="Menu Classes" />
- </listitem>
- </listitem>
- <listitem open="1" type="802" id="-1" label="Use Case View" />
- </listitem>
- </listview>
- </XMI.content>
-</XMI>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- ! vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4:
- ! **********************************************************************
- ! * BIFE * Buil It FastEr *
- ! **********************************************************************
- ! * This file is part of BIFE. *
- ! * *
- ! * BIFE is free software; you can redistribute it and/or modify it *
- ! * under the terms of the GNU General Public License as published by *
- ! * the Free Software Foundation; either version 2 of the License, or *
- ! * (at your option) any later version. *
- ! * *
- ! * BIFE is distributed in the hope that it will be useful, but *
- ! * WITHOUT ANY WARRANTY; without even the implied warranty of *
- ! * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
- ! * General Public License for more details. *
- ! * *
- ! * You should have received a copy of the GNU General Public License *
- ! * along with Hooks; if not, write to the Free Software Foundation, *
- ! * Inc., 59 Temple Place, Suite 330, Boston, MA 02111*1307 USA *
- ! **********************************************************************
- ! * Created: Mon May 19 00:16:56 ART 2003 *
- ! * Authors: Leandro Lucarella <luca@lugmen.org.ar> *
- ! *********************************************************************+
- !
- ! $Id$
- !
- !-->
-
-<xmi2code>
- <option key="target" value="*"/>
- <option key="xmi-input" value="menu.xmi"/>
- <option key="config-file" value="xmi2code.config"/>
- <option key="config-file-set" value="false"/>
- <option key="handler" value="umbrello"/>
- <option key="generator-path" value="."/>
- <option key="use-package-as-dir" value="true"/>
- <option key="indent" value=" "/>
- <option key="files-case" value="preserve"/>
- <option key="generator" value="php.pear"/>
- <option key="template-path" value="../.."/>
- <option key="php.template" value="xmi2code.tpl.php"/>
- <option key="php.default-code" value="trigger_error('Not implemented!', E_USER_WARNING);"/>
- <option key="php.pear.use-package-in-classnames" value="true"/>
- <option key="php.pear.underscore-in-nonpublic" value="false"/>
-</xmi2code>