ipl: drop obsoleted components
This commit is contained in:
parent
df7c77a0f6
commit
01c3a553ba
|
@ -1,35 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace dipl\Html;
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
abstract class BaseElement extends BaseHtmlElement
|
||||
{
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
public function attributes()
|
||||
{
|
||||
return $this->getAttributes();
|
||||
}
|
||||
|
||||
/**
|
||||
* Container constructor.
|
||||
*
|
||||
* @param string $tag
|
||||
* @param Attributes|array $attributes
|
||||
*
|
||||
* @deprecated
|
||||
*
|
||||
* @return HtmlElement
|
||||
*/
|
||||
public function addElement($tag, $attributes = null)
|
||||
{
|
||||
$element = Html::tag($tag, $attributes);
|
||||
$this->add($element);
|
||||
|
||||
return $element;
|
||||
}
|
||||
}
|
|
@ -1,43 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace dipl\Html;
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
class Container extends BaseHtmlElement
|
||||
{
|
||||
/** @var string */
|
||||
protected $contentSeparator = "\n";
|
||||
|
||||
/** @var string */
|
||||
protected $tag = 'div';
|
||||
|
||||
protected function __construct()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Html|array|string $content
|
||||
* @param Attributes|array $attributes
|
||||
* @param string $tag
|
||||
*
|
||||
* @return static
|
||||
*/
|
||||
public static function create($attributes = null, $content = null, $tag = null)
|
||||
{
|
||||
$container = new static();
|
||||
if ($content !== null) {
|
||||
$container->setContent($content);
|
||||
}
|
||||
|
||||
if ($attributes !== null) {
|
||||
$container->setAttributes($attributes);
|
||||
}
|
||||
if ($tag !== null) {
|
||||
$container->setTag($tag);
|
||||
}
|
||||
|
||||
return $container;
|
||||
}
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace dipl\Html;
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
class Element extends HtmlElement
|
||||
{
|
||||
}
|
|
@ -206,24 +206,4 @@ class Html
|
|||
|
||||
return self::$htmlEscapeFlags;
|
||||
}
|
||||
|
||||
/*
|
||||
// @deprecated
|
||||
public static function element($name, $attributes = null)
|
||||
{
|
||||
return Html::tag($name, $attributes);
|
||||
}
|
||||
|
||||
// @deprecated
|
||||
public function addContent($content)
|
||||
{
|
||||
return $this->add($content);
|
||||
}
|
||||
|
||||
// @deprecated
|
||||
public function hasContent()
|
||||
{
|
||||
return ! $this->isEmpty();
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
|
|
@ -1,31 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace dipl\Html;
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
abstract class HtmlTag
|
||||
{
|
||||
/**
|
||||
* @param $content
|
||||
* @param Attributes|array $attributes
|
||||
*
|
||||
* @return HtmlElement
|
||||
*/
|
||||
public static function h1($content, $attributes = null)
|
||||
{
|
||||
return HtmlElement::create('h1', $attributes)->setContent($content);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $content
|
||||
* @param Attributes|array $attributes
|
||||
*
|
||||
* @return HtmlElement
|
||||
*/
|
||||
public static function p($content, $attributes = null)
|
||||
{
|
||||
return HtmlElement::create('p', $attributes)->setContent($content);
|
||||
}
|
||||
}
|
|
@ -1,57 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace dipl\Html;
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
class Util
|
||||
{
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
public static function escapeForHtml($value)
|
||||
{
|
||||
return Html::escapeForHtml($value);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
public static function renderError($error)
|
||||
{
|
||||
return Html::renderError($error);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
public static function showTraces($show = null)
|
||||
{
|
||||
return Html::showTraces($show);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
public static function wantHtml($any)
|
||||
{
|
||||
return Html::wantHtml($any);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
public static function canBeRenderedAsString($any)
|
||||
{
|
||||
return Html::canBeRenderedAsString($any);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
public static function getPhpTypeName($any)
|
||||
{
|
||||
return Html::getPhpTypeName($any);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue