$_view
$_view : \Horde_View
The parent view invoking the helper.
Use these methods to generate HTML tags programmatically.
By default, they output HTML 4.01 Strict compliant tags.
$_view : \Horde_View
The parent view invoking the helper.
tag(string $name, string $options = null) : string
Returns an empty HTML tag of type $name.
Add HTML attributes by passing an attributes hash to $options. For attributes with no value (like disabled and readonly), give it a value of TRUE in the $options array.
$this->tag('br')
// =>
$this->tag('input', array('type' => 'text', 'disabled' => true))
// =>
string | $name | Tag name. |
string | $options | Tag attributes. |
Generated HTML tag.
contentTag(string $name, string $content, array $options = null) : string
Returns an HTML block tag of type $name surrounding the $content.
Add HTML attributes by passing an attributes hash to $options. For attributes with no value (like disabled and readonly), give it a value of TRUE in the $options array.
Hello world! Hello world!
$this->contentTag('p', 'Hello world!')
// =>
string | $name | Tag name. |
string | $content | Content to place between the tags. |
array | $options | Tag attributes. |
Generated HTML tags with content between.
cdataSection(string $content) : string
Returns a CDATA section with the given $content.
CDATA sections are used to escape blocks of text containing characters which would otherwise be recognized as markup. CDATA sections begin with the string "<![CDATA[" and end with (and may not contain) the string "]]>".
$this->cdataSection('
string | $content | Content for inside CDATA section. |
CDATA section with content.