ILIAS
release_8 Revision v8.19
|
Public Member Functions | ||||
isClientSideValueOk ($value) | ||||
getUpdateOnLoadCode () | ||||
Get update code. More... | ||||
![]() | ||||
__construct (DataFactory $data_factory, Refinery $refinery, string $label, ?string $byline=null) | ||||
withInput (InputData $input) | ||||
getLabel () | ||||
Get the label of the input. More... | ||||
withLabel (string $label) | ||||
Get an input like this, but with a replaced label.
| ||||
getByline () | ||||
Get the byline of the input. More... | ||||
withByline (string $byline) | ||||
Get an input like this, but with an additional/replaced label.
| ||||
isRequired () | ||||
Is this field required? More... | ||||
withRequired (bool $is_required, ?Constraint $requirement_constraint=null) | ||||
Get an input like this, but set the field to be required (or not).With the optional $required_constraint, you can REPLACE the default constraint that is checked if $is_required is true (see getConstraintForRequirement() on Input/Field implementations). A custom constraint SHOULD be explained in the byline of the input. More... | ||||
isDisabled () | ||||
Is this input disabled? More... | ||||
withDisabled (bool $is_disabled) | ||||
Get an input like this, but set it to a disabled state.
| ||||
withOnUpdate (Signal $signal) | ||||
Trigger a signal of another component on update.
| ||||
appendOnUpdate (Signal $signal) | ||||
Get a component like this, triggering a signal of another component on update.In contrast to withOnUpdate, the signal is appended to existing signals for the on update event.
| ||||
![]() | ||||
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... | ||||
withAdditionalTransformation (Transformation $trafo) | ||||
Apply a transformation to the content of the input. More... | ||||
withDedicatedName (string $dedicated_name) | ||||
Sets an optional dedicated name for this input which is used in the NAME attribute of the rendered input (instead of the auto-generated 'input_x'). More... | ||||
![]() | ||||
getCanonicalName () | ||||
Get the canonical name of the component. More... | ||||
![]() | ||||
withOnLoadCode (Closure $binder) | ||||
withAdditionalOnLoadCode (Closure $binder) | ||||
Add some onload-code to the component instead of replacing the existing one. More... | ||||
getOnLoadCode () | ||||
Get the currently bound on load code. More... | ||||
![]() | ||||
withResetTriggeredSignals () | ||||
Get a component like this but reset any triggered signals of other components. More... | ||||
getTriggeredSignals () | ||||
Get all triggered signals of this component. More... | ||||
![]() | ||||
withNameFrom (NameSource $source) | ||||
Get an input like this one, with a different name. More... | ||||
getName () | ||||
The name of the input as used in HTML. More... | ||||
getContent () | ||||
Get the current content of the input. More... | ||||
withError (string $error) | ||||
Get an input like this one, with a different error. More... | ||||
getError () | ||||
The error of the input as used in HTML. More... | ||||
Data Fields | |
bool | $value_ok = true |
Constraint | $requirement_constraint = null |
Protected Member Functions | |
getConstraintForRequirement () | |
![]() | |
getConstraintForRequirement () | |
This may return a constraint that will be checked first if the field is required. More... | |
applyOperationsTo ($res) | |
getOperations () | |
Additional Inherited Members | |
![]() | |
bool | $is_disabled = false |
bool | $is_required = false |
Constraint | $requirement_constraint = null |
string | $label |
string | $byline = null |
Definition at line 32 of file InputTest.php.
|
protected |
Definition at line 42 of file InputTest.php.
References $requirement_constraint.
DefInput::getUpdateOnLoadCode | ( | ) |
Get update code.
This method has to return JS code that calls il.UI.filter.onFieldUpdate(event, '$id', string_value);
Implements ILIAS\UI\Component\Input\Container\Form\FormInput.
Definition at line 47 of file InputTest.php.
DefInput::isClientSideValueOk | ( | $value | ) |
Constraint DefInput::$requirement_constraint = null |
Definition at line 35 of file InputTest.php.
Referenced by getConstraintForRequirement().
bool DefInput::$value_ok = true |
Definition at line 34 of file InputTest.php.
Referenced by isClientSideValueOk().