cvs: pear /HTML_Template_Flexy/Flexy Element.php /HTML_Template_Flexy/Flexy/Element Xul.php
| From: | Alan Knowles | Date: | Tue, 17 Aug 2004 03:50:27 +0000 |
| Subject: | cvs: pear /HTML_Template_Flexy/Flexy Element.php /HTML_Template_Flexy/Flexy/Element Xul.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-22992@lists.php.net to get a copy of this message | ||
alan_k Mon Aug 16 23:50:27 2004 EDT
Modified files:
/pear/HTML_Template_Flexy/Flexy Element.php
/pear/HTML_Template_Flexy/Flexy/Element Xul.php
Log:
menulists partially working (needs to preserver menupopup args really.
http://cvs.php.net/diff.php/pear/HTML_Template_Flexy/Flexy/Element.php?r1=1.31&r2=1.32&ty=u
Index: pear/HTML_Template_Flexy/Flexy/Element.php
diff -u pear/HTML_Template_Flexy/Flexy/Element.php:1.31
pear/HTML_Template_Flexy/Flexy/Element.php:1.32
--- pear/HTML_Template_Flexy/Flexy/Element.php:1.31 Mon Aug 16 05:35:26 2004
+++ pear/HTML_Template_Flexy/Flexy/Element.php Mon Aug 16 23:50:27 2004
@@ -17,7 +17,7 @@
// | Based on HTML_Common by: Adam Daniel <adaniel1@eesus.jnj.com> |
// +----------------------------------------------------------------------+
//
-// $Id: Element.php,v 1.31 2004/08/16 09:35:26 alan_k Exp $
+// $Id: Element.php,v 1.32 2004/08/17 03:50:27 alan_k Exp $
/**
* Lightweight HTML Element builder and render
@@ -228,7 +228,7 @@
function setValue($value) {
// store the value in all situations
$this->value = $value;
- $tag = $this->tag;
+ $tag = strtolower($this->tag);
if (strpos($tag,':') !== false) {
$bits = explode(':',$tag);
$tag = $bits[1];
@@ -349,7 +349,9 @@
case '': // dummy objects.
$this->value = $value;
return;
- case 'menuitem':
+
+ // XUL elements
+ case 'menulist':
require_once 'HTML/Template/Flexy/Element/Xul.php';
HTML_Template_Flexy_Element_Xul::setValue($this,$value);
return ;
@@ -393,7 +395,7 @@
}
- $tag = '';
+ $tag = strtolower($this->tag);
$namespace = '';
if (false !== strpos($this->tag, ':')) {
http://cvs.php.net/diff.php/pear/HTML_Template_Flexy/Flexy/Element/Xul.php?r1=1.3&r2=1.4&ty=u
Index: pear/HTML_Template_Flexy/Flexy/Element/Xul.php
diff -u pear/HTML_Template_Flexy/Flexy/Element/Xul.php:1.3
pear/HTML_Template_Flexy/Flexy/Element/Xul.php:1.4
--- pear/HTML_Template_Flexy/Flexy/Element/Xul.php:1.3 Mon Aug 16 05:15:18 2004
+++ pear/HTML_Template_Flexy/Flexy/Element/Xul.php Mon Aug 16 23:50:27 2004
@@ -16,7 +16,7 @@
// | Author: Alan Knowles <alan@akbkhome.com> |
// +----------------------------------------------------------------------+
//
-// $Id: Xul.php,v 1.3 2004/08/16 09:15:18 alan_k Exp $
+// $Id: Xul.php,v 1.4 2004/08/17 03:50:27 alan_k Exp $
/**
* Extension HTML Element builder and render to provide features for Xul
@@ -54,7 +54,7 @@
if (!isset($element->children[0])) {
$element->children[0] = HTML_Template_Flexy_Element('menupopup');
}
- if (!is_a($element->children[0],HTML_Template_Flexy_Element)) {
+ if (!is_a($element->children[0],'HTML_Template_Flexy_Element')) {
// oh sh*t big problem!
return HTML_Template_Flexy::raiseError(
__CLASS__ . '::setValue expected a menupopup as the child of a
menuitem?',
@@ -91,6 +91,7 @@
$child->attributes['selected'] = 'false';
}
+
return;
}
@@ -130,9 +131,9 @@
}
if (!isset($element->children[0])) {
- $element->children[0] = HTML_Template_Flexy_Element('menupopup');
+ $element->children[0] = new HTML_Template_Flexy_Element('menupopup');
}
- if (!is_a($element->children[0],HTML_Template_Flexy_Element)) {
+ if (!is_a($element->children[0],'HTML_Template_Flexy_Element')) {
// oh sh*t big problem!
return HTML_Template_Flexy::raiseError(
__CLASS__ . '::setValue expected a menupopup as the child of a
menuitem?',