ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
DefInput Class Reference
+ Inheritance diagram for DefInput:
+ Collaboration diagram for DefInput:

Data Fields

 $value_ok = true
 
 $requirement_constraint = null
 

Protected Member Functions

 isClientSideValueOk ($value)
 Check if the value is good to be displayed client side. More...
 
 getConstraintForRequirement ()
 This may return a constraint that will be checked first if the field is required. More...
 
- Protected Member Functions inherited from ILIAS\UI\Implementation\Component\Input\Field\Input
 getConstraintForRequirement ()
 This may return a constraint that will be checked first if the field is required. More...
 
 isClientSideValueOk ($value)
 Check if the value is good to be displayed client side. More...
 
 setAdditionalTransformation (Transformation $trafo)
 Apply a transformation to the current or future content. More...
 
 setAdditionalConstraint (Constraint $constraint)
 Apply a constraint to the current or the future content. More...
 
 applyOperationsTo ($res)
 Applies the operations in this instance to the value. More...
 

Additional Inherited Members

- Public Member Functions inherited from ILIAS\UI\Implementation\Component\Input\Field\Input
 __construct (DataFactory $data_factory, ValidationFactory $validation_factory, TransformationFactory $transformation_factory, $label, $byline)
 Input constructor. More...
 
 getLabel ()
 
 withLabel ($label)
 
 getByline ()
 
 withByline ($byline)
 
 isRequired ()
 
 withRequired ($is_required)
 
 getValue ()
 Get the value that is displayed in the input client side. More...
 
 withValue ($value)
 Get an input like this with another value displayed on the client side. More...
 
 getError ()
 The error of the input as used in HTML. More...
 
 withError ($error)
 Get an input like this one, with a different error. More...
 
 withAdditionalTransformation (Transformation $trafo)
 Apply a transformation to the current or future content. More...
 
 withAdditionalConstraint (Constraint $constraint)
 Apply a constraint to the current or the future content. More...
 
 getName ()
 The name of the input as used in HTML.
Returns
string
More...
 
 withNameFrom (NameSource $source)
 Get an input like this one, with a different name.
Parameters
NameSource$source
Returns
Input
More...
 
 withInput (PostData $input)
 Collects the input, applies trafos on the input and returns a new input reflecting the data that was putted in. More...
 
 getContent ()
 Get the current content of the input.
Returns
Result
More...
 
 getName ()
 The name of the input as used in HTML. More...
 
 withNameFrom (NameSource $source)
 Get an input like this one, with a different name. More...
 
 withInput (PostData $input)
 Get an input like this with input from post data. More...
 
 getContent ()
 Get the current content of the input. More...
 
- Protected Attributes inherited from ILIAS\UI\Implementation\Component\Input\Field\Input
 $data_factory
 
 $validation_factory
 
 $transformation_factory
 
 $label
 
 $byline
 
 $is_required = false
 
 $value = null
 
 $error = null
 
 $content = null
 

Detailed Description

Definition at line 16 of file InputTest.php.

Member Function Documentation

◆ getConstraintForRequirement()

DefInput::getConstraintForRequirement ( )
protected

This may return a constraint that will be checked first if the field is required.

Returns
Constraint|null

Reimplemented from ILIAS\UI\Implementation\Component\Input\Field\Input.

Definition at line 30 of file InputTest.php.

31 {
33 }
$requirement_constraint
Definition: InputTest.php:27

References $requirement_constraint.

◆ isClientSideValueOk()

DefInput::isClientSideValueOk (   $value)
protected

Check if the value is good to be displayed client side.

Parameters
mixed$value
Returns
bool

Reimplemented from ILIAS\UI\Implementation\Component\Input\Field\Input.

Definition at line 21 of file InputTest.php.

22 {
23 return $this->value_ok;
24 }

References $value_ok.

Field Documentation

◆ $requirement_constraint

DefInput::$requirement_constraint = null

Definition at line 27 of file InputTest.php.

Referenced by getConstraintForRequirement().

◆ $value_ok

DefInput::$value_ok = true

Definition at line 18 of file InputTest.php.

Referenced by isClientSideValueOk().


The documentation for this class was generated from the following file: