View: Add string helpers

This commit is contained in:
Eric Lippmann 2015-01-19 14:20:57 +01:00
parent a0a3241d1c
commit a1a36301fe
1 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,8 @@
<?php
namespace Icinga\Web\View;
use Icinga\Util\String;
$this->addHelperFunction('ellipsis', function ($string, $maxLength, $ellipsis = '...') {
return String::ellipsis($string, $maxLength, $ellipsis);
});