public static function get_spans_in_tag(HTMLTags_TagWithContent $tag, $str_to_split, $num_displayed_char) { $spans = self::get_spans($str_to_split, $num_displayed_char); foreach ($spans as $span) { $tag->append_tag_to_content($span); } return $tag; }
public function __construct($level, $content = null) { if (is_int($level) && $level >= 1 && $level <= 6) { parent::__construct('h' . $level, $content); } else { $error_message = "The heading level must be an integer between 1 and 6!"; throw new Exception($error_message); } }
public function __construct() { parent::__construct('embed', null); }
public function __construct() { parent::__construct('fieldset', null); #$this->items = array(); }
public function __construct($content = NULL) { parent::__construct('dd', $content); }
public function __construct($content) { parent::__construct('label', $content); }
public function __construct($content) { parent::__construct('option', $content); }
public function __construct() { parent::__construct('abbr', null); }
public function get_attributes() { $attributes = parent::get_attributes(); $attributes['action'] = new HTMLTags_FormActionAttribute($this->get_action()); return $attributes; }
public function __construct($content = null) { parent::__construct('noscript', $content); }
public function __construct($content) { parent::__construct('legend', $content); }
public function __construct($content = NULL) { parent::__construct('select', $content); $this->options = array(); }
public function __construct() { parent::__construct('select', null); $this->options = array(); }
protected function __construct($name) { parent::__construct($name, null); #$this->items = array(); }
public function __construct($content = '') { parent::__construct('li', $content); }
public function __construct() { parent::__construct('fieldset', NULL); }
public function __construct($content = null) { parent::__construct('em', $content); }
public function __construct() { parent::__construct('form', null); $this->hidden_inputs = array(); }