ipl: add Html::sprintf() helper method

This commit is contained in:
Thomas Gelf 2017-07-25 14:02:49 +02:00
parent 2d802128ac
commit 3f03fe8555
1 changed files with 8 additions and 0 deletions

View File

@ -248,6 +248,14 @@ class Html implements ValidHtml
return $this->renderError($e); return $this->renderError($e);
} }
} }
public static function sprintf($string)
{
$args = func_get_args();
array_shift($args);
return new FormattedString($string, $args);
}
private function reIndexContent() private function reIndexContent()
{ {
$this->contentIndex = []; $this->contentIndex = [];