cvs: pear /HTML_Template_Flexy/Flexy/Token Tag.php

From: Date: Sat, 01 Feb 2003 04:15:14 +0000
Subject: cvs: pear /HTML_Template_Flexy/Flexy/Token Tag.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-8623@lists.php.net to get a copy of this message
alan_k Fri Jan 31 23:15:14 2003 EDT Modified files: /pear/HTML_Template_Flexy/Flexy/Token Tag.php Log: change all tags to be stored uppercase, add support for static selects mapping to form values Index: pear/HTML_Template_Flexy/Flexy/Token/Tag.php diff -u pear/HTML_Template_Flexy/Flexy/Token/Tag.php:1.3 pear/HTML_Template_Flexy/Flexy/Token/Tag.php:1.4 --- pear/HTML_Template_Flexy/Flexy/Token/Tag.php:1.3 Fri Jan 31 23:09:56 2003 +++ pear/HTML_Template_Flexy/Flexy/Token/Tag.php Fri Jan 31 23:15:14 2003 @@ -16,7 +16,7 @@ // | Authors: Alan Knowles <alan@akbkhome> | // +----------------------------------------------------------------------+ // -// $Id: Tag.php,v 1.3 2003/02/01 04:09:56 alan_k Exp $ +// $Id: Tag.php,v 1.4 2003/02/01 04:15:14 alan_k Exp $ /** * A standard HTML Tag = eg. Table/Body etc. @@ -203,7 +203,7 @@ switch ($type) { case "CHECKBOX": - $this->attributes['checked'] = + $this->attributes['CHECKED'] = $this->factory("PHP", "<?php if (". $this->toVar($thisvar).") { ?>CHECKED<?php } ?>", $this->line); @@ -218,14 +218,14 @@ case "HIDDEN": - $this->attributes['value'] = array( + $this->attributes['VALUE'] = array( "\"", $this->factory("Var",$thisvar.":u",$this->line), "\""); return; default: - $this->attributes['value'] = array( + $this->attributes['VALUE'] = array( "\"", $this->factory("Var",$thisvar.":u",$this->line), "\""); @@ -418,15 +418,15 @@ /** * getAttribute = reads an attribute value and strips the quotes * - * TODO : sort out case issues... - * does not handle valuse with flexytags in + * TODO + * does not handle values with flexytags in them * * @return none * @access string */ function getAttribute($key) { // all attribute keys are stored Upper Case, - // however just to make sure we have not done a type :) + // however just to make sure we have not done a typo :) $key = strtoupper($key); if (!isset($this->attributes[$key])) {

« previous php.pear.cvs (#8623) next »