mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-09-25 18:59:05 +02:00
ActionController: commit missing helper method
This commit is contained in:
parent
3fcb0d9849
commit
98b7b7be3f
@ -171,6 +171,14 @@ abstract class ActionController extends Controller
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected function shorten($string, $length)
|
||||||
|
{
|
||||||
|
if (strlen($string) > $length) {
|
||||||
|
return substr($string, 0, $length) . '...';
|
||||||
|
}
|
||||||
|
return $string;
|
||||||
|
}
|
||||||
|
|
||||||
protected function setViewScript($name)
|
protected function setViewScript($name)
|
||||||
{
|
{
|
||||||
$this->_helper->viewRenderer->setNoController(true);
|
$this->_helper->viewRenderer->setNoController(true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user