From e28cc11b1bd4804c3ed35ef506c2425f321586ea Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Sun, 6 Jul 2003 03:32:59 +0000 Subject: [PATCH] Last general corrections for start releasing the modules. --- album/package.xml | 2 +- base/package.xml | 2 +- bife/ROADMAP | 17 +---- bife/package.xml | 2 +- bife/src/BIFE/Link.php | 126 ------------------------------------ bife/src/BIFE/Translate.php | 77 ---------------------- hit/Doxyfile | 2 +- hit/package.xml | 2 +- menu/package.xml | 2 +- 9 files changed, 8 insertions(+), 224 deletions(-) delete mode 100644 bife/src/BIFE/Link.php delete mode 100644 bife/src/BIFE/Translate.php diff --git a/album/package.xml b/album/package.xml index 3d671f3..ba6baed 100644 --- a/album/package.xml +++ b/album/package.xml @@ -55,6 +55,6 @@ 4.2.3 HTML_Template_HIT BIFE - BIFE_Basic + BIFE_Basic diff --git a/base/package.xml b/base/package.xml index e328057..dee90dd 100644 --- a/base/package.xml +++ b/base/package.xml @@ -16,7 +16,7 @@ - 1.0.0beta1 + 0.11 2003-06-29 beta Check http://bife.llucax.hn.org/ for details. diff --git a/bife/ROADMAP b/bife/ROADMAP index 801d858..b066984 100644 --- a/bife/ROADMAP +++ b/bife/ROADMAP @@ -1,21 +1,8 @@ $Id$ -Version 0.12 -============ - - - Look if using $_SERVER['PATH_INFO'] in Link is viable. - - -Version 0.13 -============ - - - Start using config file for default widgets attributes. - -... - -Version 0.x -============ +Version 1.0.0 +============= - Make a way to put all classes in a package together in a single file to avoid overhead in require_once calls (to be reviewed). diff --git a/bife/package.xml b/bife/package.xml index 48cd2b6..407072e 100644 --- a/bife/package.xml +++ b/bife/package.xml @@ -45,6 +45,6 @@ in mind. One of the main goals of BIFE is to be fast. 4.2.3 - HTML_Template_HIT + HTML_Template_HIT diff --git a/bife/src/BIFE/Link.php b/bife/src/BIFE/Link.php deleted file mode 100644 index 8204db0..0000000 --- a/bife/src/BIFE/Link.php +++ /dev/null @@ -1,126 +0,0 @@ - | -// +--------------------------------------------------------------------+ -// -// $Id$ -// - -// +X2C includes -require_once 'BIFE/Container.php'; -// ~X2C - -// +X2C Class 110 :Link -/** - * Link to another page. - * - * @package BIFE - * @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 diff --git a/bife/src/BIFE/Translate.php b/bife/src/BIFE/Translate.php deleted file mode 100644 index 4c1fe05..0000000 --- a/bife/src/BIFE/Translate.php +++ /dev/null @@ -1,77 +0,0 @@ - | -// +--------------------------------------------------------------------+ -// -// $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_'. If not template is found, it copy the XML to the output. - * - * @package 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 - { - $name = "bife_{$this->name}"; - if ($template->exists($name, '')) { - $this->attrs['CONTENTS'] = $this->renderContents($template); - $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"; - } else { - $out .= "/>"; - } - } - return $out; - } - // -X2C - -} // -X2C Class :Translate - -?> \ No newline at end of file diff --git a/hit/Doxyfile b/hit/Doxyfile index 8f45f55..0e9226d 100644 --- a/hit/Doxyfile +++ b/hit/Doxyfile @@ -4,7 +4,7 @@ # General configuration options #--------------------------------------------------------------------------- PROJECT_NAME = "HIT - Hook vs IT Template Engine" -PROJECT_NUMBER = 1.0.0beta +PROJECT_NUMBER = 1.0.0beta1 OUTPUT_DIRECTORY = api OUTPUT_LANGUAGE = English USE_WINDOWS_ENCODING = NO diff --git a/hit/package.xml b/hit/package.xml index 3663690..310e656 100644 --- a/hit/package.xml +++ b/hit/package.xml @@ -18,7 +18,7 @@ like IT so every chunk must be in a separated file if you want to iterate it. - 1.0.0beta + 1.0.0beta1 2003-06-30 beta Check http://www.llucax.hn.org/desarrollo/bife/ for details. diff --git a/menu/package.xml b/menu/package.xml index 8047b95..06f85c9 100644 --- a/menu/package.xml +++ b/menu/package.xml @@ -34,6 +34,6 @@ 4.2.3 HTML_Template_HIT BIFE - BIFE_Basic + BIFE_Basic -- 2.43.0