ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
NullDataHelper.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24{
25 public function matchesDurationPattern(string $string): bool
26 {
27 return false;
28 }
29
30 public function matchesDatetimePattern(string $string): bool
31 {
32 return false;
33 }
34
38 public function durationToIterator(string $duration): \Generator
39 {
40 yield from [];
41 }
42
43 public function durationToSeconds(string $duration): int
44 {
45 return 0;
46 }
47
51 public function datetimeToIterator(string $datetime): \Generator
52 {
53 yield from [];
54 }
55
56 public function datetimeToObject(string $datetime): \DateTimeImmutable
57 {
58 return new \DateTimeImmutable('@0');
59 }
60
61 public function durationFromIntegers(
62 ?int $years,
63 ?int $months,
64 ?int $days,
65 ?int $hours,
66 ?int $minutes,
67 ?int $seconds
68 ): string {
69 return '';
70 }
71
72 public function datetimeFromObject(\DateTimeImmutable $object): string
73 {
74 return '';
75 }
76
80 public function getAllLanguages(): \Generator
81 {
82 yield from [];
83 }
84}
$datetime
$duration
datetimeFromObject(\DateTimeImmutable $object)
Note that LOM in ILIAS ignores the time part of any datetimes.
durationFromIntegers(?int $years, ?int $months, ?int $days, ?int $hours, ?int $minutes, ?int $seconds)
return['delivery_method'=> 'php',]
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...