ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Static Public Member Functions | |
static | prepareFormOutput ($a_str, bool $a_strip=false) |
static | period2String (ilDateTime $a_from, $a_to=null) |
Return a string of time period. More... | |
static | prepareTextareaOutput (string $txt_output, bool $prepare_for_latex_output=false, bool $omitNl2BrWhenTextArea=false) |
Prepares a string for a text area output where latex code may be in it If the text is HTML-free, CHR(13) will be converted to a line break. More... | |
static | makeTimeSelect (string $prefix, bool $short=true, int $hour=0, int $minute=0, int $second=0, bool $a_use_default=true, array $a_further_options=[]) |
Creates a combination of HTML selects for time inputs. More... | |
static | formCheckbox (bool $checked, string $varname, string $value, bool $disabled=false) |
static | formSelect ( $selected, string $varname, array $options, bool $multiple=false, bool $direct_text=false, int $size=0, string $style_class="", array $attribs=[], bool $disabled=false) |
Builds a select form field with options and shows the selected option first. More... | |
static | formRadioButton (bool $checked, string $varname, string $value, ?string $onclick=null, bool $disabled=false) |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Util class various functions, usage as namespace
grown helper class with many different UseCases and functions. The class is not under direct maintainership and the responsibilities are unclear. In this context, the class should no longer be used in the code and existing uses should be converted to their own service in the medium term. If you need ilUtil for the implementation of a new function in ILIAS > 7, please contact the Technical Board.
Definition at line 31 of file class.ilLegacyFormElementsUtil.php.
|
static |
Definition at line 255 of file class.ilLegacyFormElementsUtil.php.
Referenced by ilMailSearchGUI\appendRecipientSelection(), ilLocalUserGUI\assignRoles(), ilECSNodeMappingCmsExplorer\buildFormItem(), ilPasteIntoMultipleItemsExplorer\buildFormItem(), ilECSNodeMappingLocalExplorer\buildFormItem(), ilTestPersonalDefaultSettingsTableGUI\fillRow(), ilPCImageMapTableGUI\fillRow(), ilUnitCategoryTableGUI\fillRow(), ilImageMapTableGUI\fillRow(), ilWebResourceEditableLinkTableGUI\fillRow(), ilAccessibilityDocumentTableGUI\formatCellValue(), ilForumTopicTableGUI\initMergeThreadsTable(), and ilNestedListInputGUI\render().
|
static |
Definition at line 393 of file class.ilLegacyFormElementsUtil.php.
References null.
Referenced by ilECSNodeMappingCmsExplorer\buildFormItem(), ilPasteIntoMultipleItemsExplorer\buildFormItem(), ilECSNodeMappingLocalExplorer\buildFormItem(), and ilForumTopicTableGUI\initMergeThreadsTable().
|
static |
Builds a select form field with options and shows the selected option first.
public
string/array | value to be selected |
string | variable name in formular |
array | array with $options (key = lang_key, value = long name) |
boolean | multiple selection list true/false |
boolean | if true, the option values are displayed directly, otherwise they are handled as language variable keys and the corresponding language variable is displayed |
int | size |
string | style class |
array | additional attributes (key = attribute name, value = attribute value) |
boolean | disabled |
Definition at line 310 of file class.ilLegacyFormElementsUtil.php.
Referenced by ilLearningProgressBaseGUI\__appendLPDetails(), ilObjUserGUI\__buildFilterSelect(), ilObjUserFolderGUI\__buildUserFilterSelect(), ilObjUserGUI\__getDateSelect(), ilObjUserGUI\__showUserDefinedFields(), ilPersonalProfileGUI\__showUserDefinedFields(), ilRecurrenceInputGUI\buildMonthlyByDaySelection(), ilRecurrenceInputGUI\buildMonthlyByMonthDaySelection(), ilRecurrenceInputGUI\buildYearlyByDaySelection(), ilRecurrenceInputGUI\buildYearlyByMonthDaySelection(), ilObjTypeDefinitionGUI\editObject(), ilTable2GUI\fillActionRow(), ilPCImageMapTableGUI\fillRow(), ilPCGridCellTableGUI\fillRow(), ilAdvancedMDRecordTableGUI\fillRow(), ilPCFileListTableGUI\fillRow(), ilImportantPagesTableGUI\fillRow(), ilECSCommunityTableGUI\fillRow(), ilInstallationHeadingTableGUI\fillRow(), ilMultilingualismTableGUI\fillRow(), ilLPCollectionSettingsTableGUI\fillRow(), ilImageMapTableGUI\fillRow(), ilWebResourceEditableLinkTableGUI\fillRow(), ilModulesTableGUI\fillRow(), ilTable2GUI\getLinkbar(), ilLocationInputGUI\insert(), ilRecurrenceInputGUI\insert(), ilLDAPSettingsGUI\prepareMappingSelect(), ilDurationInputGUI\render(), ilPortfolioPageGUI\renderMyCourses(), ilInternalLinkGUI\showLinkHelp(), ilPageObjectGUI\showPage(), ilObjUserFolderGUI\showPossibleSubObjects(), and ilObjectGUI\showPossibleSubObjects().
|
static |
Creates a combination of HTML selects for time inputs.
Creates a combination of HTML selects for time inputs. The select names are $prefix[h] for hours, $prefix[m] for minutes and $prefix[s] for seconds.
public
string | $prefix | Prefix of the select name |
boolean | $short | Set TRUE for a short time input (only hours and minutes). Default is TRUE |
integer | $hour | Default hour value |
integer | $minute | Default minute value |
integer | $second | Default second value |
Definition at line 165 of file class.ilLegacyFormElementsUtil.php.
References $DIC, $lng, and ilCalendarSettings\TIME_FORMAT_24.
Referenced by ilLPCollectionSettingsTableGUI\fillRow().
|
static |
Return a string of time period.
Definition at line 59 of file class.ilLegacyFormElementsUtil.php.
References $DIC, $lng, ilDateTime\get(), IL_CAL_DATETIME, and IL_CAL_UNIX.
Referenced by ilObjExerciseAccess\_lookupRemainingWorkingTimeString(), ilExcAssMemberState\getRemainingPeerReviewPresentation(), ilExcAssMemberState\getRemainingTimePresentation(), ilExcAssMemberState\getRemainingTimePresentationOfLastSubmissionOfRelativeDeadline(), and ILIAS\Exercise\Assignment\PropertyAndActionBuilderUI\getTimeString().
|
static |
string | int | $a_str |
Definition at line 37 of file class.ilLegacyFormElementsUtil.php.
References ilUtil\stripSlashes().
Referenced by ilScormPlaceholderDescription\__construct(), ILIAS\Test\Certificate\TestPlaceholderDescription\__construct(), ilLTIConsumerPlaceholderDescription\__construct(), ILIAS\Exercise\Certificate\ExercisePlaceholderDescription\__construct(), ILIAS\Course\Certificate\CoursePlaceholderDescription\__construct(), ilCmiXapiPlaceholderDescription\__construct(), ilObjUserGUI\__showUserDefinedFields(), ilPersonalProfileGUI\__showUserDefinedFields(), assQuestionGUI\addBasicQuestionFormProperties(), ilInfoScreenGUI\addPropertyTextinput(), assFileUploadFileTableGUI\buildFileItemContent(), ilAssClozeTestFeedback\buildGapFeedbackLabel(), ilAssClozeTestFeedback\buildSelectGapOptionFeedbackLabel(), ilAssClozeTestFeedback\buildTextGapGivenAnswerFeedbackLabel(), ilKprimChoiceCorrectionsInputGUI\checkInput(), ilObjStyleSheetGUI\deleteColorConfirmationObject(), ilObjTest\deliverPDFfromHTML(), ilLMEditShortTitlesTableGUI\fillRow(), ilKprimChoiceAnswerFreqStatTableGUI\fillRow(), ilLanguageExtTableGUI\fillRow(), ilHelpTooltipTableGUI\fillRow(), ilPCTabsTableGUI\fillRow(), ilMultiSrtConfirmationTable2GUI\fillRow(), ilPCGridCellTableGUI\fillRow(), ilWikiContributorsTableGUI\fillRow(), ilSurveyQuestionPoolExportTableGUI\fillRow(), ilInstallationHeadingTableGUI\fillRow(), ilStyleColorTableGUI\fillRow(), ilHelpMappingTableGUI\fillRow(), ilMultilingualismTableGUI\fillRow(), ilPortfolioPageTableGUI\fillRow(), ilExportIDTableGUI\fillRow(), ilTaxonomyTableGUI\fillRow(), ilImageMapTableGUI\fillRow(), ilSurveyQuestionblockbrowserTableGUI\fillRow(), ilQuestionPoolPrintViewTableGUI\fillRow(), ilExGradesTableGUI\fillRow(), ilWebResourceEditableLinkTableGUI\fillRow(), ilSurveyQuestionbrowserTableGUI\fillRow(), ilModulesTableGUI\fillRow(), ilMailErrorFormatter\format(), assFormulaQuestion\generateResultInputHTML(), ilAwarenessGUI\getAwarenessList(), assClozeTestGUI\getBestSolutionText(), assErrorText\getErrorTokenHtml(), ilAccessibilitySupportContactsGUI\getFooterLink(), ilSystemSupportContactsGUI\getFooterLink(), ilFormPropertyGUI\getHiddenTag(), ilUserFilterGUI\getHTML(), ilTaggingGUI\getHTML(), ilAdvancedSelectionListGUI\getHTML(), ilAssNestedOrderingElementsInputGUI\getItemHtml(), ilRepositoryObjectSearchBlockGUI\getLegacyContent(), ilMailExplorer\getNodeContent(), ILIAS\StudyProgramme\Certificate\ilStudyProgrammePlaceholderValues\getPlaceholderValues(), ILIAS\StudyProgramme\Certificate\ilStudyProgrammePlaceholderValues\getPlaceholderValuesForPreview(), ILIAS\Course\Certificate\CoursePlaceholderValues\getPlaceholderValuesForPreview(), assOrderingHorizontalGUI\getPreview(), assSingleChoiceGUI\getPreview(), assTextQuestionGUI\getPreview(), assMultipleChoiceGUI\getPreview(), assKprimChoiceGUI\getPreview(), assImagemapQuestionGUI\getPreview(), assClozeTestGUI\getPreview(), SurveySingleChoiceQuestionGUI\getPrintView(), SurveyMultipleChoiceQuestionGUI\getPrintView(), SurveyMatrixQuestionGUI\getPrintView(), SurveyQuestionGUI\getPrintViewQuestionTitle(), assQuestion\getSuggestedSolutionOutput(), ilTaggingGUI\getTaggingInputHTML(), assOrderingHorizontalGUI\getTestOutput(), assKprimChoiceGUI\getTestOutput(), assSingleChoiceGUI\getTestOutput(), assMultipleChoiceGUI\getTestOutput(), assImagemapQuestionGUI\getTestOutput(), assClozeTestGUI\getTestOutput(), ilObjTest\getTestResult(), ilHiddenInputGUI\getToolbarHTML(), SurveyTextQuestionGUI\getWorkingForm(), SurveySingleChoiceQuestionGUI\getWorkingForm(), SurveyMultipleChoiceQuestionGUI\getWorkingForm(), SurveyMatrixQuestionGUI\getWorkingForm(), ILIAS\Course\Certificate\CoursePlaceholderValues\hasCompletionDate(), ilRepositoryObjectSearchResultTableGUI\init(), LDAPRoleMappingTable\initRecords(), ilMailSearchGUI\initSearchForm(), ilAssSingleChoiceCorrectionsInputGUI\insert(), ilAssErrorTextCorrectionsInputGUI\insert(), ilHiddenInputGUI\insert(), ilAssMultipleChoiceCorrectionsInputGUI\insert(), ilEssayKeywordWizardInputGUI\insert(), ilRandomTestROInputGUI\insert(), ilBackgroundImageInputGUI\insert(), ilSelectBuilderInputGUI\insert(), ilEMailInputGUI\insert(), ilUserLoginInputGUI\insert(), ilKprimChoiceWizardInputGUI\insert(), ilMatrixRowWizardInputGUI\insert(), ilTRBLColorPickerInputGUI\insert(), ilMatchingPairWizardInputGUI\insert(), ilFileWizardInputGUI\insert(), ilColorPickerInputGUI\insert(), ilMultipleChoiceWizardInputGUI\insert(), ilCSSRectInputGUI\insert(), ilErrorTextWizardInputGUI\insert(), ilAnswerWizardInputGUI\insert(), ilMatchingWizardInputGUI\insert(), ilCategoryWizardInputGUI\insert(), ilTextAreaInputGUI\insert(), ilSingleChoiceWizardInputGUI\insert(), assQuestionGUI\outPageSelector(), ilExerciseSubmissionTableGUI\parseColumns(), ilLuceneSearchGUI\performSearch(), assClozeTestGUI\populateNumericGapCorrectionFormProperty(), assClozeTestGUI\populateNumericGapFormPart(), ilCertificateUtilHelper\prepareFormOutput(), ilObjForumGUI\prepareFormOutput(), ilNonEditableValueGUI\render(), ilTextWizardInputGUI\render(), ilCheckboxInputGUI\render(), ilMultipleTextsInputGUI\render(), ilTagInputGUI\render(), ilSelectInputGUI\render(), ilMultiSelectInputGUI\render(), ilRepositorySelectorInputGUI\render(), ilPasswordInputGUI\render(), ilOrgUnitGenericMultiInputGUI\render(), ilNumberInputGUI\render(), ilTextInputGUI\render(), ilMultipleImagesInputGUI\render(), ilDateDurationInputGUI\render(), ilObjForumGUI\renderDraftContent(), ilObjForumGUI\renderPostContent(), ilSearchBaseGUI\renderSearch(), assOrderingHorizontalGUI\renderSolutionOutput(), assSingleChoiceGUI\renderSolutionOutput(), assMultipleChoiceGUI\renderSolutionOutput(), assMatchingQuestionGUI\renderSolutionOutput(), assKprimChoiceGUI\renderSolutionOutput(), assClozeTestGUI\renderSolutionOutput(), ILIAS\LegalDocuments\ConsumerToolbox\ConsumerSlots\SelfRegistration\saveLegacyForm(), ilHelpGUI\search(), ilMailFormGUI\searchUsers(), ilPasswordAssistanceGUI\showAssistanceForm(), ilAccessibilityControlConceptGUI\showControlConcept(), ILIAS\LegalDocuments\ConsumerToolbox\ConsumerSlots\Agreement\showDocument(), ilHelpGUI\showPage(), ilLuceneSearchGUI\showSavedResults(), ilPasswordAssistanceGUI\showUsernameAssistanceForm(), and assQuestionGUI\suggestedsolution().
|
static |
Prepares a string for a text area output where latex code may be in it If the text is HTML-free, CHR(13) will be converted to a line break.
string | $txt_output | String which should be prepared for output public |
Definition at line 109 of file class.ilLegacyFormElementsUtil.php.
References ilUtil\isHTML(), and ilRTE\replaceLatexSpan().
Referenced by assMatchingQuestionGUI\buildTermHtml(), ilAssClozeTestFeedback\completeFbPropsForNumericGap(), ilAssClozeTestFeedback\completeFbPropsForSelectGap(), ilAssClozeTestFeedback\completeFbPropsForTextGap(), ilAssClozeTestFeedback\completeFormPropsForFeedbackModeGapQuestion(), ilAssConfigurableMultiOptionQuestionFeedback\completeSpecificFormProperties(), ilAssMultiOptionQuestionFeedback\completeSpecificFormProperties(), assTextQuestionGUI\getAutoSavedSolutionOutput(), assClozeTest\getClozeTextForHTMLOutput(), assQuestionGUI\getGenericFeedbackOutput(), assClozeTestGUI\getGenericFeedbackOutput(), assQuestionGUI\getGenericFeedbackOutputForCorrectSolution(), assQuestionGUI\getGenericFeedbackOutputForIncorrectSolution(), assLongMenuGUI\getLongMenuTextWithInputFieldsInsteadOfGaps(), assFileUploadGUI\getPreview(), assSingleChoiceGUI\getPreview(), assMultipleChoiceGUI\getPreview(), assKprimChoiceGUI\getPreview(), assClozeTestGUI\getPreview(), assFormulaQuestionGUI\getPreview(), assFileUploadGUI\getSolutionOutput(), assImagemapQuestionGUI\getSolutionOutput(), ilAssClozeTestFeedback\getSpecificAnswerFeedbackFormValue(), assNumericGUI\getSpecificFeedbackOutput(), assTextSubsetGUI\getSpecificFeedbackOutput(), assFileUploadGUI\getSpecificFeedbackOutput(), assErrorTextGUI\getSpecificFeedbackOutput(), assLongMenuGUI\getSpecificFeedbackOutput(), assSingleChoiceGUI\getSpecificFeedbackOutput(), assMultipleChoiceGUI\getSpecificFeedbackOutput(), assImagemapQuestionGUI\getSpecificFeedbackOutput(), assMatchingQuestionGUI\getSpecificFeedbackOutput(), assClozeTestGUI\getSpecificFeedbackOutput(), assFileUploadGUI\getTestOutput(), assKprimChoiceGUI\getTestOutput(), assSingleChoiceGUI\getTestOutput(), assMultipleChoiceGUI\getTestOutput(), assFormulaQuestionGUI\getTestOutput(), assClozeTestGUI\getTestOutput(), ilAssConfigurableMultiOptionQuestionFeedback\initSpecificFormProperties(), ilAssMultiOptionQuestionFeedback\initSpecificFormProperties(), ilAssMatchingPairCorrectionsInputGUI\insert(), ilAnswerWizardInputGUI\insert(), assMatchingQuestionGUI\populateDefinition(), assSingleChoiceGUI\populateInlineFeedback(), assKprimChoiceGUI\populateSpecificFeedbackInline(), assMultipleChoiceGUI\populateSpecificFeedbackInline(), SurveyQuestion\prepareTextareaOutput(), ilObjSurvey\prepareTextareaOutput(), ilObjTest\prepareTextareaOutput(), assQuestion\purifyAndPrepareTextAreaOutput(), assOrderingHorizontalGUI\renderSolutionOutput(), assTextQuestionGUI\renderSolutionOutput(), assTextSubsetGUI\renderSolutionOutput(), assNumericGUI\renderSolutionOutput(), assSingleChoiceGUI\renderSolutionOutput(), assMultipleChoiceGUI\renderSolutionOutput(), assErrorTextGUI\renderSolutionOutput(), assLongMenuGUI\renderSolutionOutput(), assOrderingQuestionGUI\renderSolutionOutput(), assMatchingQuestionGUI\renderSolutionOutput(), assKprimChoiceGUI\renderSolutionOutput(), assClozeTestGUI\renderSolutionOutput(), assFormulaQuestionGUI\renderSolutionOutput(), and assClozeTest\updateClozeTextFromGaps().