lib/private/legacy/util.php 1 location
|
@@ 641-647 (lines=7) @@
|
638 |
|
* @param array $attributes array of attributes for the element |
639 |
|
* @param string $text the text content for the element |
640 |
|
*/ |
641 |
|
public static function addHeader($tag, $attributes, $text=null) { |
642 |
|
self::$headers[] = [ |
643 |
|
'tag' => $tag, |
644 |
|
'attributes' => $attributes, |
645 |
|
'text' => $text |
646 |
|
]; |
647 |
|
} |
648 |
|
|
649 |
|
/** |
650 |
|
* formats a timestamp in the "right" way |
lib/private/legacy/template.php 1 location
|
@@ 247-253 (lines=7) @@
|
244 |
|
* @param string $text the text content for the element. If $text is null then the |
245 |
|
* element will be written as empty element. So use "" to get a closing tag. |
246 |
|
*/ |
247 |
|
public function addHeader($tag, $attributes, $text=null) { |
248 |
|
$this->headers[]= [ |
249 |
|
'tag' => $tag, |
250 |
|
'attributes' => $attributes, |
251 |
|
'text' => $text |
252 |
|
]; |
253 |
|
} |
254 |
|
|
255 |
|
/** |
256 |
|
* Process the template |