lib/private/legacy/template.php 1 location
|
@@ 186-192 (lines=7) @@
|
| 183 |
|
* @param string $text the text content for the element. If $text is null then the |
| 184 |
|
* element will be written as empty element. So use "" to get a closing tag. |
| 185 |
|
*/ |
| 186 |
|
public function addHeader($tag, $attributes, $text=null) { |
| 187 |
|
$this->headers[]= array( |
| 188 |
|
'tag' => $tag, |
| 189 |
|
'attributes' => $attributes, |
| 190 |
|
'text' => $text |
| 191 |
|
); |
| 192 |
|
} |
| 193 |
|
|
| 194 |
|
/** |
| 195 |
|
* Process the template |
lib/private/legacy/util.php 1 location
|
@@ 645-651 (lines=7) @@
|
| 642 |
|
* @param array $attributes array of attributes for the element |
| 643 |
|
* @param string $text the text content for the element |
| 644 |
|
*/ |
| 645 |
|
public static function addHeader($tag, $attributes, $text=null) { |
| 646 |
|
self::$headers[] = array( |
| 647 |
|
'tag' => $tag, |
| 648 |
|
'attributes' => $attributes, |
| 649 |
|
'text' => $text |
| 650 |
|
); |
| 651 |
|
} |
| 652 |
|
|
| 653 |
|
/** |
| 654 |
|
* formats a timestamp in the "right" way |