ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
◀ ilDoc Overview
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
5
function
estimatedReadingTime
()
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
estimatedReadingTime()
Definition:
01-estimated-reading-time.php:5
$result
$result
Definition:
CleanUpTest.php:463
php
An exception for terminatinating execution or to throw for unit testing.
$DIC
$DIC
Definition:
xapitoken.php:46
src
Refinery
examples
String
01-estimated-reading-time.php
Generated on Sat Oct 4 2025 20:01:11 for ILIAS by
1.9.4 (using
Doxyfile
)