ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Namespaces | |
Breadcrumbs | |
Button | |
Card | |
Chart | |
Counter | |
Deck | |
Divider | |
Dropdown | |
Dropzone | |
Glyph | |
Icon | |
Image | |
Item | |
Legacy | |
Link | |
Listing | |
Modal | |
Panel | |
Popover | |
ViewControl | |
Data Structures | |
class | Signal |
class | SignalGenerator |
interface | SignalGeneratorInterface |
class | TriggeredSignal |
interface | TriggeredSignalInterface |
Functions | |
getCanonicalName () | |
Default implementation uses the namespace of the component up to and excluding "Component", reverses the order and adds spaces. More... | |
getCanonicalNameByFullyQualifiedName () | |
Does the calculation required for getCanonicalName. More... | |
checkArg ($which, $check, $message) | |
/** Throw an InvalidArgumentException containing the message if $check is false. More... | |
checkIntArg ($which, $value) | |
Throw an InvalidArgumentException if $value is no int. More... | |
checkStringArg ($which, $value) | |
Throw an InvalidArgumentException if $value is no string. More... | |
checkFloatArg ($which, $value) | |
Throw an InvalidArgumentException if $value is not a float. More... | |
checkArgInstanceOf ($which, $value, $class) | |
Throw an InvalidArgumentException if $value is not an instance of $class. More... | |
checkArgIsElement ($which, $value, $array, $name) | |
Throw an InvalidArgumentException if $value is not an element of array. More... | |
checkArgList ($which, array &$values, \Closure $check, \Closure $message) | |
Check every key and value of the list with a supplied closure. More... | |
checkArgListElements ($which, array &$values, &$classes) | |
Check every element of the list if it is an instance of one of the given classes. More... | |
toArray ($value) | |
Wrap the given value in an array if it is no array. More... | |
wrongTypeMessage ($expected, $value) | |
withOnLoadCode (\Closure $binder) | |
withAdditionalOnLoadCode (\Closure $binder) | |
getOnLoadCode () | |
checkBinder (\Closure $binder) | |
appendTriggeredSignal (Component\Signal $signal, $event) | |
Append a triggered signal to other signals of the same event. More... | |
addTriggeredSignal (Component\Signal $signal, $event) | |
Add a triggered signal, replacing any other signals registered on the same event. More... | |
getTriggeredSignals () | |
withResetTriggeredSignals () | |
flattenArray (array $array) | |
Flatten a multidimensional array to a single dimension. More... | |
Variables | |
trait | ComponentHelper |
Provides common functionality for component implementations. More... | |
trait | JavaScriptBindable |
Trait for components implementing JavaScriptBindable providing standard implementation. More... | |
trait | Triggerer |
|
protected |
Add a triggered signal, replacing any other signals registered on the same event.
Component\Signal | $signal | |
string | $event |
Definition at line 46 of file Triggerer.php.
References array.
Referenced by ILIAS\UI\Implementation\Component\Dropdown\Dropdown\withOnClick(), ILIAS\UI\Implementation\Component\Button\Button\withOnClick(), ILIAS\UI\Implementation\Component\Glyph\Glyph\withOnClick(), ILIAS\UI\Implementation\Component\Dropzone\File\File\withOnDrop(), ILIAS\UI\Implementation\Component\Dropdown\Dropdown\withOnHover(), ILIAS\UI\Implementation\Component\Button\Button\withOnHover(), ILIAS\UI\Implementation\Component\Modal\Modal\withOnLoad(), and ILIAS\UI\Implementation\Component\ViewControl\Sortation\withOnSort().
|
protected |
Append a triggered signal to other signals of the same event.
Component\Signal | $signal | |
string | $event |
Definition at line 29 of file Triggerer.php.
References array.
Referenced by ILIAS\UI\Implementation\Component\Dropdown\Dropdown\appendOnClick(), ILIAS\UI\Implementation\Component\Button\Button\appendOnClick(), ILIAS\UI\Implementation\Component\Glyph\Glyph\appendOnClick(), ILIAS\UI\Implementation\Component\Dropdown\Dropdown\appendOnHover(), ILIAS\UI\Implementation\Component\Button\Button\appendOnHover(), ILIAS\UI\Implementation\Component\Modal\Modal\appendOnLoad(), and ILIAS\UI\Implementation\Component\Dropzone\File\File\withAdditionalDrop().
|
protected |
/** Throw an InvalidArgumentException containing the message if $check is false.
string | $which | |
bool | $check | |
string | $message |
Definition at line 59 of file ComponentHelper.php.
Referenced by ComponentMock\_checkArg().
|
protected |
Throw an InvalidArgumentException if $value is not an instance of $class.
string | $which | |
mixed | $value | |
string | $class |
Definition at line 117 of file ComponentHelper.php.
Referenced by ILIAS\UI\Implementation\Component\ViewControl\Section\__construct(), ILIAS\UI\Implementation\Component\Modal\LightboxImagePage\__construct(), ComponentMock\_checkArgInstanceOf(), ILIAS\UI\Implementation\Component\Breadcrumbs\Breadcrumbs\withAppendedItem(), ILIAS\UI\Implementation\Component\Button\Tag\withBackgroundColor(), ILIAS\UI\Implementation\Component\Dropzone\File\File\withFileSizeLimit(), and ILIAS\UI\Implementation\Component\Button\Tag\withForegroundColor().
|
protected |
Throw an InvalidArgumentException if $value is not an element of array.
string | $which | |
mixed | $value | |
array | $array | |
string | $name | used in the exception |
Definition at line 132 of file ComponentHelper.php.
Referenced by ILIAS\UI\Implementation\Component\Icon\Custom\__construct(), ILIAS\UI\Implementation\Component\Deck\Deck\__construct(), ILIAS\UI\Implementation\Component\Counter\Counter\__construct(), ILIAS\UI\Implementation\Component\Image\Image\__construct(), ILIAS\UI\Implementation\Component\Glyph\Glyph\__construct(), ILIAS\UI\Implementation\Component\Icon\Standard\__construct(), ComponentMock\_checkArgIsElement(), ILIAS\UI\Implementation\Component\Deck\Deck\withCardsSize(), ILIAS\UI\Implementation\Component\Button\Tag\withRelevance(), and ILIAS\UI\Implementation\Component\Icon\Icon\withSize().
|
protected |
Check every key and value of the list with a supplied closure.
string | $which | |
mixed[] | &$values | |
\Closure | $check | takes key and value, should return false if those don't fit |
\Closure | $message | create an error message from key and value |
Definition at line 153 of file ComponentHelper.php.
Referenced by ILIAS\UI\Implementation\Component\Listing\Descriptive\__construct(), ComponentMock\_checkArgList(), and ILIAS\UI\Implementation\Component\Listing\Descriptive\withItems().
|
protected |
Check every element of the list if it is an instance of one of the given classes.
Throw an InvalidArgumentException if that is not the case.
string | $which | |
mixed[] | &$values | |
string|string[] | $classes name(s) of classes |
Definition at line 185 of file ComponentHelper.php.
Referenced by ILIAS\UI\Implementation\Component\Breadcrumbs\Breadcrumbs\__construct(), ILIAS\UI\Implementation\Component\Panel\Report\__construct(), ILIAS\UI\Implementation\Component\Modal\Lightbox\__construct(), ILIAS\UI\Implementation\Component\Popover\Standard\__construct(), ILIAS\UI\Implementation\Component\Popover\Listing\__construct(), ILIAS\UI\Implementation\Component\Deck\Deck\__construct(), ILIAS\UI\Implementation\Component\Listing\Listing\__construct(), ILIAS\UI\Implementation\Component\Dropzone\File\Wrapper\__construct(), ILIAS\UI\Implementation\Component\Panel\Panel\__construct(), ILIAS\UI\Implementation\Component\Modal\RoundTrip\__construct(), ComponentMock\_checkArgListElements(), ILIAS\UI\Implementation\Component\Modal\RoundTrip\withActionButtons(), ILIAS\UI\Implementation\Component\Modal\Interruptive\withAffectedItems(), ILIAS\UI\Implementation\Component\Deck\Deck\withCards(), ILIAS\UI\Implementation\Component\Dropzone\File\Wrapper\withContent(), ILIAS\UI\Implementation\Component\Listing\Listing\withItems(), and ILIAS\UI\Implementation\Component\Card\Card\withSections().
|
private |
\Closure | $binder |
Definition at line 58 of file JavaScriptBindable.php.
References array.
Referenced by ILIAS\UI\Implementation\Component\withAdditionalOnLoadCode(), and ILIAS\UI\Implementation\Component\withOnLoadCode().
|
protected |
Throw an InvalidArgumentException if $value is not a float.
string | $which | |
mixed | $value |
Definition at line 103 of file ComponentHelper.php.
Referenced by ComponentMock\_checkFloatArg().
|
protected |
Throw an InvalidArgumentException if $value is no int.
string | $which | |
mixed | $value |
Definition at line 77 of file ComponentHelper.php.
Referenced by ILIAS\UI\Implementation\Component\Counter\Counter\__construct(), ComponentMock\_checkIntArg(), and ILIAS\UI\Implementation\Component\Dropzone\File\File\withMaxFiles().
|
protected |
Throw an InvalidArgumentException if $value is no string.
string | $which | |
mixed | $value |
Definition at line 90 of file ComponentHelper.php.
Referenced by ILIAS\UI\Implementation\Component\Icon\Custom\__construct(), ILIAS\UI\Implementation\Component\Link\Standard\__construct(), ILIAS\UI\Implementation\Component\Link\Link\__construct(), ILIAS\UI\Implementation\Component\Legacy\Legacy\__construct(), ILIAS\UI\Implementation\Component\ViewControl\Mode\__construct(), ILIAS\UI\Implementation\Component\Panel\Listing\Listing\__construct(), ILIAS\UI\Implementation\Component\Panel\Panel\__construct(), ILIAS\UI\Implementation\Component\Item\Group\__construct(), ILIAS\UI\Implementation\Component\Modal\RoundTrip\__construct(), ILIAS\UI\Implementation\Component\Modal\LightboxImagePage\__construct(), ILIAS\UI\Implementation\Component\Modal\InterruptiveItem\__construct(), ILIAS\UI\Implementation\Component\Item\Item\__construct(), ILIAS\UI\Implementation\Component\Card\Card\__construct(), ILIAS\UI\Implementation\Component\Button\Button\__construct(), ILIAS\UI\Implementation\Component\Image\Image\__construct(), ILIAS\UI\Implementation\Component\Modal\Interruptive\__construct(), ILIAS\UI\Implementation\Component\Dropzone\File\File\__construct(), ILIAS\UI\Implementation\Component\Glyph\Glyph\__construct(), ILIAS\UI\Implementation\Component\Icon\Standard\__construct(), ComponentMock\_checkStringArg(), ILIAS\UI\Implementation\Component\Icon\Icon\withAbbreviation(), ILIAS\UI\Implementation\Component\Image\Image\withAction(), ILIAS\UI\Implementation\Component\ViewControl\Mode\withActive(), ILIAS\UI\Implementation\Component\Image\Image\withAlt(), ILIAS\UI\Implementation\Component\Button\Button\withAriaLabel(), ILIAS\UI\Implementation\Component\Popover\Popover\withAsyncContentUrl(), ILIAS\UI\Implementation\Component\Popover\ReplaceContentSignal\withAsyncRenderUrl(), ILIAS\UI\Implementation\Component\Modal\Modal\withAsyncRenderUrl(), ILIAS\UI\Implementation\Component\Button\Tag\withClasses(), ILIAS\UI\Implementation\Component\Item\Item\withDescription(), ILIAS\UI\Implementation\Component\Modal\Interruptive\withFormAction(), ILIAS\UI\Implementation\Component\Divider\Horizontal\withLabel(), ILIAS\UI\Implementation\Component\Dropdown\Dropdown\withLabel(), ILIAS\UI\Implementation\Component\Button\Button\withLabel(), ILIAS\UI\Implementation\Component\ViewControl\Sortation\withLabel(), ILIAS\UI\Implementation\Component\Item\Item\withLeadText(), ILIAS\UI\Implementation\Component\Dropzone\File\Standard\withMessage(), ILIAS\UI\Implementation\Component\Dropzone\File\File\withParameterName(), ILIAS\UI\Implementation\Component\Button\Tag\withRelevance(), ILIAS\UI\Implementation\Component\Image\Image\withSource(), ILIAS\UI\Implementation\Component\ViewControl\Sortation\withTargetURL(), ILIAS\UI\Implementation\Component\Card\Card\withTitle(), ILIAS\UI\Implementation\Component\Popover\Popover\withTitle(), ILIAS\UI\Implementation\Component\Card\Card\withTitleAction(), and ILIAS\UI\Implementation\Component\Dropzone\File\File\withUploadUrl().
|
private |
Flatten a multidimensional array to a single dimension.
array | $array |
Definition at line 78 of file Triggerer.php.
References array.
Referenced by ILIAS\UI\Implementation\Component\getTriggeredSignals().
ILIAS\UI\Implementation\Component\getCanonicalName | ( | ) |
Default implementation uses the namespace of the component up to and excluding "Component", reverses the order and adds spaces.
Also does caching.
Definition at line 23 of file ComponentHelper.php.
References ILIAS\UI\Implementation\Component\getCanonicalNameByFullyQualifiedName().
|
protected |
Does the calculation required for getCanonicalName.
Definition at line 36 of file ComponentHelper.php.
References $name.
Referenced by ILIAS\UI\Implementation\Component\getCanonicalName().
ILIAS\UI\Implementation\Component\getOnLoadCode | ( | ) |
Definition at line 48 of file JavaScriptBindable.php.
Referenced by ilSCORM2004PageGUI\postOutputProcessing(), and ILIAS\UI\Implementation\Component\withAdditionalOnLoadCode().
ILIAS\UI\Implementation\Component\getTriggeredSignals | ( | ) |
Definition at line 57 of file Triggerer.php.
References ILIAS\UI\Implementation\Component\flattenArray().
|
protected |
Wrap the given value in an array if it is no array.
mixed | $value |
Definition at line 211 of file ComponentHelper.php.
Referenced by ILIAS\UI\Implementation\Component\Panel\Report\__construct(), ILIAS\UI\Implementation\Component\Modal\Lightbox\__construct(), ILIAS\UI\Implementation\Component\Popover\Standard\__construct(), ILIAS\UI\Implementation\Component\Dropzone\File\Wrapper\__construct(), ILIAS\UI\Implementation\Component\ViewControl\Mode\__construct(), ILIAS\UI\Implementation\Component\Panel\Panel\__construct(), ILIAS\UI\Implementation\Component\Modal\RoundTrip\__construct(), ComponentMock\_toArray(), Gettext\Translator\loadTranslations(), ilBuddySystemRelationCollectionTest\testElementsCanBeSliced(), Gettext\Generators\Jed\toString(), Gettext\Generators\PhpArray\toString(), ILIAS\UI\Implementation\Component\Button\Tag\withClasses(), and ILIAS\UI\Implementation\Component\Dropzone\File\Wrapper\withContent().
ILIAS\UI\Implementation\Component\withAdditionalOnLoadCode | ( | \Closure | $binder | ) |
Definition at line 32 of file JavaScriptBindable.php.
References $id, ILIAS\UI\Implementation\Component\checkBinder(), ILIAS\UI\Implementation\Component\getOnLoadCode(), and ILIAS\UI\Implementation\Component\withOnLoadCode().
Referenced by JavaScriptBindableTest\test_withAdditionalOnLoadCode().
ILIAS\UI\Implementation\Component\withOnLoadCode | ( | \Closure | $binder | ) |
Definition at line 21 of file JavaScriptBindable.php.
References ILIAS\UI\Implementation\Component\checkBinder().
Referenced by ilCalendarBlockGUI\addMiniMonth(), ilGroupAddToGroupActionGUI\confirmAddUser(), ilGroupAddToGroupActionGUI\confirmCreateGroupAndAddUser(), ilOnScreenChatMenuGUI\getMainMenuHTML(), ilInternalLinkGUI\getUserSearchResult(), ilGroupAddToGroupActionGUI\sendResponse(), ilGroupAddToGroupActionGUI\show(), and ILIAS\UI\Implementation\Component\withAdditionalOnLoadCode().
ILIAS\UI\Implementation\Component\withResetTriggeredSignals | ( | ) |
|
protected |
Definition at line 219 of file ComponentHelper.php.
trait ILIAS::UI::Implementation::Component\ComponentHelper |
Provides common functionality for component implementations.
Definition at line 11 of file ComponentHelper.php.
Trait for components implementing JavaScriptBindable providing standard implementation.
Definition at line 12 of file JavaScriptBindable.php.
Definition at line 15 of file Triggerer.php.