$data, 'type' => $type), $attribs); // Params $paramHtml = array(); $closingBracket = $this->getClosingBracket(); foreach ($params as $param => $options) { if (is_string($options)) { $options = array('value' => $options); } $options = array_merge(array('name' => $param), $options); $paramHtml[] = '_htmlAttribs($options) . $closingBracket; } // Content if (is_array($content)) { $content = implode(self::EOL, $content); } // Object header $xhtml = '_htmlAttribs($attribs) . '>' . self::EOL . implode(self::EOL, $paramHtml) . self::EOL . ($content ? $content . self::EOL : '') . ''; return $xhtml; } }