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); } }
/** * Parse a document * @param path - the path to parse (to an XML document) * @access protected */ protected function parseDocument($path) { $util = new XmlUtility($path, $this); while ($util->parseDoc()) { } }