ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
◀ ilDoc Overview
Not.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (c) 2017 Stefan Hecken <stefan.hecken@concepts-and-training.de> Extended GPL, see docs/LICENSE */
3
4
namespace
ILIAS\Refinery\Logical
;
5
6
use
ILIAS\Refinery\Custom\Constraint
;
7
use
ILIAS\Data
;
8
9
class
Not
extends
Constraint
10
{
14
protected
$constraint
;
15
16
public
function
__construct
(
Constraint
$constraint
, Data\
Factory
$data_factory, \
ilLanguage
$lng
)
17
{
18
$this->constraint =
$constraint
;
19
parent::__construct
(
20
function
($value) {
21
return
!$this->constraint->accepts($value);
22
},
23
function
(
$txt
, $value) {
24
return
$txt
(
"not_generic"
, $this->constraint->getErrorMessage($value));
25
},
26
$data_factory,
27
$lng
28
);
29
}
30
}
ILIAS\Refinery\Logical\Not
Definition:
Not.php:9
ILIAS\Refinery\Logical\Not\$constraint
$constraint
Definition:
Not.php:14
ILIAS\Refinery\Constraint
A constraint encodes some resrtictions on values.
Definition:
Constraint.php:14
Constraint
$lng
$lng
Definition:
save_question_post_data.php:23
ILIAS\Data\Factory
Builds data types.
Definition:
Factory.php:19
$txt
$txt
Definition:
error.php:13
ILIAS\GlobalScreen\Provider\__construct
__construct(Container $dic, ilPlugin $plugin)
Definition:
PluginProviderHelper.php:30
ILIAS\Refinery\Logical\Not\__construct
__construct(Constraint $constraint, Data\Factory $data_factory, \ilLanguage $lng)
Definition:
Not.php:16
ilLanguage
language handling
Definition:
class.ilLanguage.php:26
ILIAS\Data
Definition:
Alphanumeric.php:10
ILIAS\Refinery\Logical
Definition:
Group.php:4
src
Refinery
Logical
Not.php
Generated on Wed Sep 3 2025 20:01:28 for ILIAS by
1.8.13 (using
Doxyfile
)