mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2025-12-27 01:39:35 -05:00
Container: remove traces of old class
This commit is contained in:
parent
69a1e454d2
commit
dbeb05aac9
1 changed files with 0 additions and 48 deletions
|
|
@ -38,51 +38,3 @@ class Container extends BaseElement
|
|||
return $container;
|
||||
}
|
||||
}
|
||||
|
||||
class Old {
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
public function render()
|
||||
{
|
||||
return $this->renderContainerFor(parent::render());
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
public function renderError($error)
|
||||
{
|
||||
// TODO: eventually add class="error"
|
||||
return $this->renderContainerFor(
|
||||
parent::renderError($error)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param bool $render
|
||||
* @return $this
|
||||
*/
|
||||
public function renderIfEmpty($render = true)
|
||||
{
|
||||
$this->renderIfEmpty = $render;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $content
|
||||
* @return string
|
||||
*/
|
||||
protected function renderContainerFor($content)
|
||||
{
|
||||
return sprintf(
|
||||
'<%s%s>%s</%s>',
|
||||
$this->tag,
|
||||
$this->attributes->render(),
|
||||
$content,
|
||||
$this->tag
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Reference in a new issue