lib/private/legacy/util.php 1 location
|
@@ 668-674 (lines=7) @@
|
| 665 |
|
* @param array $attributes array of attributes for the element |
| 666 |
|
* @param string $text the text content for the element |
| 667 |
|
*/ |
| 668 |
|
public static function addHeader($tag, $attributes, $text=null) { |
| 669 |
|
self::$headers[] = [ |
| 670 |
|
'tag' => $tag, |
| 671 |
|
'attributes' => $attributes, |
| 672 |
|
'text' => $text |
| 673 |
|
]; |
| 674 |
|
} |
| 675 |
|
|
| 676 |
|
/** |
| 677 |
|
* formats a timestamp in the "right" way |
lib/private/legacy/template.php 1 location
|
@@ 217-223 (lines=7) @@
|
| 214 |
|
* @param string $text the text content for the element. If $text is null then the |
| 215 |
|
* element will be written as empty element. So use "" to get a closing tag. |
| 216 |
|
*/ |
| 217 |
|
public function addHeader($tag, $attributes, $text=null) { |
| 218 |
|
$this->headers[]= [ |
| 219 |
|
'tag' => $tag, |
| 220 |
|
'attributes' => $attributes, |
| 221 |
|
'text' => $text |
| 222 |
|
]; |
| 223 |
|
} |
| 224 |
|
|
| 225 |
|
/** |
| 226 |
|
* Process the template |