icingaweb2-module-director/library/vendor/ipl/Html/BaseElement.php

36 lines
583 B
PHP
Raw Normal View History

<?php
2017-10-09 15:23:27 +02:00
namespace dipl\Html;
2018-05-05 01:04:25 +02:00
/**
* @deprecated
*/
abstract class BaseElement extends BaseHtmlElement
{
2018-05-05 00:18:45 +02:00
/**
* @deprecated
*/
public function attributes()
{
return $this->getAttributes();
}
/**
* Container constructor.
*
* @param string $tag
* @param Attributes|array $attributes
*
2018-05-05 00:18:45 +02:00
* @deprecated
*
2018-05-05 01:04:25 +02:00
* @return HtmlElement
*/
public function addElement($tag, $attributes = null)
{
2018-05-05 01:04:25 +02:00
$element = Html::tag($tag, $attributes);
$this->add($element);
2018-05-05 01:04:25 +02:00
return $element;
}
}