| @@ 52-60 (lines=9) @@ | ||
| 49 | * @return string |
|
| 50 | * @static |
|
| 51 | */ |
|
| 52 | public static function tag($name, array $attributes = []) |
|
| 53 | { |
|
| 54 | $result = ''; |
|
| 55 | foreach ($attributes AS $elem => $value) { |
|
| 56 | $result .= ' '.$elem.'="'.$value.'" '; |
|
| 57 | } |
|
| 58 | ||
| 59 | return '<'.$name.$result.'/>'; |
|
| 60 | } |
|
| 61 | ||
| 62 | /** |
|
| 63 | * Render mail a tag |
|
| @@ 92-100 (lines=9) @@ | ||
| 89 | * @return string |
|
| 90 | * @static |
|
| 91 | */ |
|
| 92 | public static function openTag($name, array $attributes = []) |
|
| 93 | { |
|
| 94 | $result = ''; |
|
| 95 | foreach ($attributes AS $key => $value) { |
|
| 96 | $result .= ' '.$key.'="'.$value.'"'; |
|
| 97 | } |
|
| 98 | ||
| 99 | return '<'.$name.$result.'>'; |
|
| 100 | } |
|
| 101 | ||
| 102 | /** |
|
| 103 | * Render close tag |
|