コード例 #1
0
 function sizeAndStyle(FormInput $node, XmlUtility $util)
 {
     if ($size = $util->attributeValue('size', XmlUtility::OPTIONAL)) {
         $node->setSize($size);
     }
     if ($style = $util->attributeValue('style', XmlUtility::OPTIONAL)) {
         $node->setStyle($style);
     }
     if ($tabindex = $util->attributeValue('tabindex', XmlUtility::OPTIONAL)) {
         $node->setTabindex($tabindex * 1000);
     }
 }