ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
ILIAS\Refinery Namespace Reference

Namespaces

 Container
 
 Custom
 
 DateTime
 
 In
 
 Integer
 
 Logical
 
 Numeric
 
 Password
 
 String
 
 To
 
 URI
 

Data Structures

interface  Constraint
 A constraint encodes some resrtictions on values. More...
 
class  ConstraintViolationException
 
class  Factory
 
class  IsNull
 
interface  Transformation
 A transformation is a function from one datatype to another. More...
 

Functions

 applyTo (Result $result)
 
 __invoke ($from)
 

Variables

trait DeriveApplyToFromTransform
 
trait DeriveInvokeFromTransform
 
trait DeriveTransformFromApplyTo
 

Detailed Description

Function Documentation

◆ __invoke()

ILIAS\Refinery\__invoke (   $from)
Exceptions

Definition at line 26 of file DeriveInvokeFromTransform.php.

27  {
28  return $this->transform($from);
29  }

◆ applyTo()

ILIAS\Refinery\applyTo ( Result  $result)
Parameters
Result$result
Returns
Result

Definition at line 25 of file DeriveApplyToFromTransform.php.

References ILIAS\Data\Result\value().

Referenced by ILIAS\UI\Implementation\Component\Input\Field\Tag\getConstraintForRequirement(), and ILIAS\UI\Implementation\Component\Input\Field\Tag\isClientSideValueOk().

25  : Result
26  {
27  try {
28  $value = $this->transform($result->value());
29  } catch (\Exception $exception) {
30  return new Result\Error($exception);
31  }
32 
33  return new Result\Ok($value);
34  }
$result
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ DeriveApplyToFromTransform

trait ILIAS::Refinery\DeriveApplyToFromTransform
Initial value:
{
abstract public function transform($from)

Definition at line 13 of file DeriveApplyToFromTransform.php.

◆ DeriveInvokeFromTransform

trait ILIAS::Refinery\DeriveInvokeFromTransform
Initial value:
{
abstract public function transform($from)

Definition at line 13 of file DeriveInvokeFromTransform.php.

◆ DeriveTransformFromApplyTo

trait ILIAS::Refinery\DeriveTransformFromApplyTo
Initial value:
{
abstract public function applyTo(Result $result) : Result
$result

Definition at line 13 of file DeriveTransformFromApplyTo.php.