mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-02-10 14:33:04 -05:00
HtmlTag: add new helper class
This commit is contained in:
parent
f7f230c7a1
commit
f3817b7d84
1 changed files with 28 additions and 0 deletions
28
library/Businessprocess/Html/HtmlTag.php
Normal file
28
library/Businessprocess/Html/HtmlTag.php
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
|
||||
namespace Icinga\Module\Businessprocess\Html;
|
||||
|
||||
abstract class HtmlTag
|
||||
{
|
||||
/**
|
||||
* @param $content
|
||||
* @param Attributes|array $attributes
|
||||
*
|
||||
* @return Element
|
||||
*/
|
||||
public static function h1($content, $attributes = null)
|
||||
{
|
||||
return Element::create('h1', $attributes)->setContent($content);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $content
|
||||
* @param Attributes|array $attributes
|
||||
*
|
||||
* @return Element
|
||||
*/
|
||||
public static function p($content, $attributes = null)
|
||||
{
|
||||
return Element::create('p', $attributes)->setContent($content);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue