lib/private/template.php 1 location
|
@@ 99-105 (lines=7) @@
|
| 96 |
|
* @param string $text the text content for the element. If $text is null then the |
| 97 |
|
* element will be written as empty element. So use "" to get a closing tag. |
| 98 |
|
*/ |
| 99 |
|
public function addHeader($tag, $attributes, $text=null) { |
| 100 |
|
$this->headers[]= array( |
| 101 |
|
'tag' => $tag, |
| 102 |
|
'attributes' => $attributes, |
| 103 |
|
'text' => $text |
| 104 |
|
); |
| 105 |
|
} |
| 106 |
|
|
| 107 |
|
/** |
| 108 |
|
* Process the template |
lib/private/util.php 1 location
|
@@ 444-450 (lines=7) @@
|
| 441 |
|
* @param array $attributes array of attributes for the element |
| 442 |
|
* @param string $text the text content for the element |
| 443 |
|
*/ |
| 444 |
|
public static function addHeader($tag, $attributes, $text=null) { |
| 445 |
|
self::$headers[] = array( |
| 446 |
|
'tag' => $tag, |
| 447 |
|
'attributes' => $attributes, |
| 448 |
|
'text' => $text |
| 449 |
|
); |
| 450 |
|
} |
| 451 |
|
|
| 452 |
|
/** |
| 453 |
|
* formats a timestamp in the "right" way |