lib/private/legacy/template.php 1 location
|
@@ 211-217 (lines=7) @@
|
208 |
|
* @param string $text the text content for the element. If $text is null then the |
209 |
|
* element will be written as empty element. So use "" to get a closing tag. |
210 |
|
*/ |
211 |
|
public function addHeader($tag, $attributes, $text=null) { |
212 |
|
$this->headers[]= [ |
213 |
|
'tag' => $tag, |
214 |
|
'attributes' => $attributes, |
215 |
|
'text' => $text |
216 |
|
]; |
217 |
|
} |
218 |
|
|
219 |
|
/** |
220 |
|
* Process the template |
lib/private/legacy/util.php 1 location
|
@@ 650-656 (lines=7) @@
|
647 |
|
* @param array $attributes array of attributes for the element |
648 |
|
* @param string $text the text content for the element |
649 |
|
*/ |
650 |
|
public static function addHeader($tag, $attributes, $text=null) { |
651 |
|
self::$headers[] = [ |
652 |
|
'tag' => $tag, |
653 |
|
'attributes' => $attributes, |
654 |
|
'text' => $text |
655 |
|
]; |
656 |
|
} |
657 |
|
|
658 |
|
/** |
659 |
|
* formats a timestamp in the "right" way |