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
}
$result
$result
Definition:
CleanUpTest.php:463
estimatedReadingTime
estimatedReadingTime()
Definition:
01-estimated-reading-time.php:5
$DIC
$DIC
Definition:
xapitoken.php:46
src
Refinery
examples
String
01-estimated-reading-time.php
Generated on Wed Sep 3 2025 20:01:28 for ILIAS by
1.8.13 (using
Doxyfile
)