ILIAS  trunk Revision v11.0_alpha-1811-gd2d5443e411
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
Group.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\Refinery\Custom;
22 
26 
27 class Group
28 {
30  private \ILIAS\Language\Language $language;
31 
32  public function __construct(Factory $dataFactory, \ILIAS\Language\Language $language)
33  {
34  $this->dataFactory = $dataFactory;
35  $this->language = $language;
36  }
37 
43  public function constraint(callable $callable, $error): ConstraintInterface
44  {
45  return new Constraint(
46  $callable,
47  $error,
48  $this->dataFactory,
49  $this->language
50  );
51  }
52 
53  public function transformation(callable $transform): TransformationInterface
54  {
55  return new Transformation($transform);
56  }
57 }
Transform values according to custom configuration.
Interface Observer Contains several chained tasks and infos about them.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Builds data types.
Definition: Factory.php:35
ilErrorHandling $error
Definition: class.ilias.php:69
language()
description: > Example for rendring a language glyph.
Definition: language.php:41
__construct(Factory $dataFactory, \ILIAS\Language\Language $language)
Definition: Group.php:32