ILIAS  trunk Revision v11.0_alpha-1723-g8e69f309bab
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
Ignore.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
23 class Ignore
24 {
28  private const IS_NOT_NULL = 'IS NOT NULL';
32  private const NOT_EQUALS = '!=';
33 
37  private array $values_to_ignore;
38 
39  public function __construct(?string ...$values_to_ignore)
40  {
41  $this->values_to_ignore = array_map(static fn(?string $value_to_ignore): string => null === $value_to_ignore ? self::IS_NOT_NULL : self::NOT_EQUALS . ' ' . $value_to_ignore, $values_to_ignore);
42  }
43 
47  public function values(): array
48  {
50  }
51 }
__construct(?string ... $values_to_ignore)
Definition: Ignore.php:39
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null