Source for file Tag.php
Documentation is available at Tag.php
* Abstract class of a tag token (start, end or empty), and its behavior.
* Static bool marker that indicates the class is a tag.
* This allows us to check objects with <tt>!empty($obj->is_tag)</tt>
* without having to use a function call <tt>is_a()</tt>.
* The lower-case name of the tag, like 'a', 'b' or 'blockquote'.
* @note Strictly speaking, XML tags are case sensitive, so we shouldn't
* be lower-casing them, but these tokens cater to HTML tags, which are
* Associative array of the tag's attributes.
* Non-overloaded constructor, which lower-cases passed tag name.
* @param $name String name.
* @param $attr Associative array of attributes.
public function __construct($name, $attr =
array(), $line =
null) {
foreach ($attr as $key =>
$value) {
// normalization only necessary when key is not lowercase
if (!isset
($attr[$new_key])) {
$attr[$new_key] =
$attr[$key];
Documentation generated on Thu, 19 Jun 2008 18:50:23 -0400 by phpDocumentor 1.4.2