$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(PHP_EOL, $content); } // Object header $xhtml = 'htmlAttribs($attribs) . '>' . PHP_EOL . implode(PHP_EOL, $paramHtml) . PHP_EOL . ($content ? $content . PHP_EOL : '') . ''; return $xhtml; } }