function visitSelect(\cmu\html\form\products\Select $component) { if (null != $component->getSelectedvalue()) { ///////untested return true; } }
function visitSelect(\cmu\html\form\products\Select $component) { $html = "<span "; $html .= $component->getHtmlClass(); $html .= ">"; $html .= $component->getSelectedvalue(); $html .= "</span>"; return $html; }
function visitSelect(\cmu\html\form\products\Select $component) { foreach ($component->getOptionsArray() as $k => $v) { //check if the VALUE matches the SELECTEDVALUE if ($component->getSelectedvalue() == $v) { //we could also return $k if required (lookups), but will mostly be VALUE. Could add switch to return KEY return $component->getName() . ";" . $v; } } }
function visitSelect(\cmu\html\form\products\Select $component) { $html = "<select "; $html .= $component->getAttributes(); $html .= ">"; $html .= $component->buildTraitOptions(); $html .= "</select>"; $html .= $component->returnHint(); return $html; }