ILIAS
trunk Revision v11.0_alpha-1744-gb0451eebef4
|
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
Definition at line 32 of file class.ilLegacyFormElementsUtil.php.
|
static |
Definition at line 261 of file class.ilLegacyFormElementsUtil.php.
Referenced by ilMailSearchGUI\appendRecipientSelection(), ilLocalUserGUI\assignRoles(), ilObjCategoryGUI\assignRolesObject(), ilECSNodeMappingCmsExplorer\buildFormItem(), ilPasteIntoMultipleItemsExplorer\buildFormItem(), ilECSNodeMappingLocalExplorer\buildFormItem(), ilTestPersonalDefaultSettingsTableGUI\fillRow(), ilPCImageMapTableGUI\fillRow(), ilUnitCategoryTableGUI\fillRow(), ilImageMapTableGUI\fillRow(), ilWebResourceEditableLinkTableGUI\fillRow(), ilBuddySystemRelationsTableGUI\fillRow(), ilMailTemplateTableGUI\formatCellValue(), ilAccessibilityDocumentTableGUI\formatCellValue(), ilForumSettingsGUI\getUserNotificationTableData(), ilForumTopicTableGUI\initMergeThreadsTable(), and ilNestedListInputGUI\render().
|
static |
Definition at line 399 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 316 of file class.ilLegacyFormElementsUtil.php.
Referenced by ilLearningProgressBaseGUI\__appendLPDetails(), ilObjUserGUI\__buildFilterSelect(), ilObjUserFolderGUI\__buildUserFilterSelect(), ilObjUserGUI\__getDateSelect(), ilAdvancedSearchGUI\__getFilterSelect(), ilObjUserGUI\__showUserDefinedFields(), ilPersonalProfileGUI\__showUserDefinedFields(), ilMDUtilSelect\_getBrowserSelect(), ilMDUtilSelect\_getContextSelect(), ilMDUtilSelect\_getCopyrightAndOtherRestrictionsSelect(), ilMDUtilSelect\_getCostsSelect(), ilMDUtilSelect\_getDifficultySelect(), ilMDUtilSelect\_getDurationSelect(), ilMDUtilSelect\_getFormatSelect(), ilMDUtilSelect\_getIntendedEndUserRoleSelect(), ilMDUtilSelect\_getInteractivityLevelSelect(), ilMDUtilSelect\_getInteractivityTypeSelect(), ilMDUtilSelect\_getLanguageSelect(), ilMDUtilSelect\_getLearningResourceTypeSelect(), ilMDUtilSelect\_getLocationTypeSelect(), ilMDUtilSelect\_getOperatingSystemSelect(), ilMDUtilSelect\_getPurposeSelect(), ilMDUtilSelect\_getRoleSelect(), ilMDUtilSelect\_getSemanticDensitySelect(), ilMDUtilSelect\_getStatusSelect(), ilMDUtilSelect\_getStructureSelect(), ilMDUtilSelect\_getTypicalAgeRangeSelect(), ilMDUtilSelect\_getTypicalLearningTimeSelect(), 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(), ilObjectTranslation2TableGUI\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 171 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 60 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 38 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(), ilPCIIMPopupTableGUI\fillRow(), ilPCTabsTableGUI\fillRow(), ilLDAPRoleMappingTableGUI\fillRow(), ilLanguageExtTableGUI\fillRow(), ilHelpTooltipTableGUI\fillRow(), ilMultiSrtConfirmationTable2GUI\fillRow(), ilPCGridCellTableGUI\fillRow(), ilWikiContributorsTableGUI\fillRow(), ilSurveyQuestionPoolExportTableGUI\fillRow(), ilInstallationHeadingTableGUI\fillRow(), ilObjectTranslation2TableGUI\fillRow(), ilStyleColorTableGUI\fillRow(), ilHelpMappingTableGUI\fillRow(), ilMultilingualismTableGUI\fillRow(), ilPortfolioPageTableGUI\fillRow(), ilExportIDTableGUI\fillRow(), ilTaxonomyTableGUI\fillRow(), ilImageMapTableGUI\fillRow(), ilSurveyQuestionblockbrowserTableGUI\fillRow(), ilQuestionPoolPrintViewTableGUI\fillRow(), ilExGradesTableGUI\fillRow(), ilWebResourceEditableLinkTableGUI\fillRow(), ilModulesTableGUI\fillRow(), ilSurveyQuestionbrowserTableGUI\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(), 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(), ilFileWizardInputGUI\insert(), ilMatchingPairWizardInputGUI\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(), ilTextWizardInputGUI\render(), ilNonEditableValueGUI\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(), ilTestPlayerAbstractGUI\showSideList(), 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 110 of file class.ilLegacyFormElementsUtil.php.
References ilMathJax\getInstance(), and ilUtil\isHTML().
Referenced by assMatchingQuestionGUI\buildTermHtml(), ilAssClozeTestFeedback\completeFbPropsForNumericGap(), ilAssClozeTestFeedback\completeFbPropsForSelectGap(), ilAssClozeTestFeedback\completeFbPropsForTextGap(), ilAssClozeTestFeedback\completeFormPropsForFeedbackModeGapQuestion(), ilAssConfigurableMultiOptionQuestionFeedback\completeSpecificFormProperties(), ilAssMultiOptionQuestionFeedback\completeSpecificFormProperties(), ilAssQuestionHintsTableGUI\fillRow(), 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(), ilAssQuestionHintRequestGUI\showHintCmd(), ilAssQuestionHintsGUI\showHintCmd(), and assClozeTest\updateClozeTextFromGaps().