2017-06-22 02:03:54 +02:00
|
|
|
<?php
|
|
|
|
|
2017-10-09 15:23:27 +02:00
|
|
|
namespace dipl\Html;
|
2017-06-22 02:03:54 +02:00
|
|
|
|
2018-05-05 01:04:25 +02:00
|
|
|
/**
|
|
|
|
* @deprecated
|
|
|
|
*/
|
|
|
|
abstract class BaseElement extends BaseHtmlElement
|
2017-06-22 02:03:54 +02:00
|
|
|
{
|
2018-05-05 00:18:45 +02:00
|
|
|
/**
|
|
|
|
* @deprecated
|
|
|
|
*/
|
|
|
|
public function attributes()
|
|
|
|
{
|
|
|
|
return $this->getAttributes();
|
|
|
|
}
|
|
|
|
|
2017-06-22 02:03:54 +02:00
|
|
|
/**
|
|
|
|
* 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
|
2017-06-22 02:03:54 +02:00
|
|
|
*/
|
|
|
|
public function addElement($tag, $attributes = null)
|
|
|
|
{
|
2018-05-05 01:04:25 +02:00
|
|
|
$element = Html::tag($tag, $attributes);
|
2017-06-22 02:03:54 +02:00
|
|
|
$this->add($element);
|
|
|
|
|
2018-05-05 01:04:25 +02:00
|
|
|
return $element;
|
2017-06-22 02:03:54 +02:00
|
|
|
}
|
|
|
|
}
|