ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
01-estimated-reading-time.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */
4
6{
7 global $DIC;
8
9 $refinery = $DIC->refinery();
10
11 $transformation = $refinery->string()->estimatedReadingTime(true);
12
13 $result = $transformation->transform('Lorem ipsum dolor sit amet, consetetur sadipscing elitr, <img src="#"/> ...');
14
15 return assert(1 === $result);
16}
estimatedReadingTime()
$result
An exception for terminatinating execution or to throw for unit testing.
$DIC
Definition: xapitoken.php:46