_getInfo($name, $value, $attribs); extract($info); // name, value, attribs, options, listsep, disable // Determine if we should use the value or the src attribute if (isset($attribs['src'])) { $src = ' src="' . $this->view->escape($attribs['src']) . '"'; unset($attribs['src']); } else { $src = ' src="' . $this->view->escape($value) . '"'; unset($value); } // Do we have a value? if (isset($value) && !empty($value)) { $value = ' value="' . $this->view->escape($value) . '"'; } else { $value = ''; } // Disabled? $disabled = ''; if ($disable) { $disabled = ' disabled="disabled"'; } // build the element $xhtml = '_htmlAttribs($attribs) . $this->getClosingBracket(); return $xhtml; } }