Permalink
Browse files

Adding TODO comment for OPT 3.0.

  • Loading branch information...
1 parent a40b76c commit c90085bee24e7a4643420b4ff03e44a31ba5445e @zyxist zyxist committed Oct 12, 2010
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/Opt/Instruction/Attribute.php
@@ -140,7 +140,7 @@ public function processNode(Opt_Xml_Node $node)
$parent = $node->getParent();
$returnStyle = $node->get('attributeValueStyle');
- $returnStyle = (is_null($returnStyle) ? self::ATTR_DISPLAY : $returnStyle);
+ $returnStyle = (null === $returnStyle ? self::ATTR_DISPLAY : $returnStyle);
if($returnStyle == self::ATTR_DISPLAY)
{
@@ -200,6 +200,9 @@ public function processNode(Opt_Xml_Node $node)
// Construct the value for the attribute.
if($node->hasChildren())
{
+ // TODO: It turned out that using opt:switch here is nearly impossible due to
+ // the compilation mechanism construction. This must be solved somehow in OPT 3.0.
+
// The more complex statement with opt:value nodes...
list($pairs, $else) = $this->_getValuePairs($node, $params);

0 comments on commit c90085b

Please sign in to comment.