示例#1
0
 function visitSelect(\cmu\html\form\products\Select $component)
 {
     if (null != $component->getSelectedvalue()) {
         ///////untested
         return true;
     }
 }
示例#2
0
 function visitSelect(\cmu\html\form\products\Select $component)
 {
     $html = "<span ";
     $html .= $component->getHtmlClass();
     $html .= ">";
     $html .= $component->getSelectedvalue();
     $html .= "</span>";
     return $html;
 }
示例#3
0
 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;
         }
     }
 }
示例#4
0
 function visitSelect(\cmu\html\form\products\Select $component)
 {
     $html = "<select ";
     $html .= $component->getAttributes();
     $html .= ">";
     $html .= $component->buildTraitOptions();
     $html .= "</select>";
     $html .= $component->returnHint();
     return $html;
 }