ILIAS
release_8 Revision v8.19
|
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(), ilStartUpGUI\confirmWithdrawal(), ilForumModeratorsGUI\detachModeratorRole(), ilForumDraftsTableGUI\fillRow(), ilTestPersonalDefaultSettingsTableGUI\fillRow(), ilQuestionPoolImportVerificationTableGUI\fillRow(), ilMailAttachmentTableGUI\fillRow(), ilPCImageMapTableGUI\fillRow(), ilPCIIMTriggerTableGUI\fillRow(), ilImageMapTableGUI\fillRow(), ilMarkSchemaTableGUI\fillRow(), ilWebResourceEditableLinkTableGUI\fillRow(), ilBuddySystemRelationsTableGUI\fillRow(), ilMailTemplateTableGUI\formatCellValue(), ilTermsOfServiceDocumentTableGUI\formatCellValue(), ilAccessibilityDocumentTableGUI\formatCellValue(), ilForumSettingsGUI\getUserNotificationTableData(), ilForumTopicTableGUI\initMergeThreadsTable(), ilNestedListInputGUI\render(), ilMailingListsGUI\showMailingLists(), and ilMailingListsGUI\showMembersList().
|
static |
Definition at line 399 of file class.ilLegacyFormElementsUtil.php.
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.
References $attributes, $DIC, ILIAS\LTI\ToolProvider\$key, and $lng.
Referenced by ilLearningProgressBaseGUI\__appendLPDetails(), ilTypicalLearningTimeInputGUI\__buildDaysSelect(), ilMDEditorGUI\__buildDaysSelect(), ilObjUserGUI\__buildFilterSelect(), ilTypicalLearningTimeInputGUI\__buildMonthsSelect(), ilMDEditorGUI\__buildMonthsSelect(), ilObjUserFolderGUI\__buildUserFilterSelect(), ilMDEditorGUI\__fillSubelements(), 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(), ilObjSystemFolderGUI\checkObject(), ilObjTypeDefinitionGUI\editObject(), ilTable2GUI\fillActionRow(), ilPCImageMapTableGUI\fillRow(), ilImportantPagesTableGUI\fillRow(), ilPCGridCellTableGUI\fillRow(), ilAdvancedMDRecordTableGUI\fillRow(), ilECSCommunityTableGUI\fillRow(), ilPCFileListTableGUI\fillRow(), ilObjectTranslationTableGUI\fillRow(), ilLPCollectionSettingsTableGUI\fillRow(), ilMultilingualismTableGUI\fillRow(), ilObjectTranslation2TableGUI\fillRow(), ilPCIIMTriggerTableGUI\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(), ilObjectGUI\showPossibleSubObjects(), and ilStructureObjectGUI\subchap().
|
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, $format, $i, $ilUser, $lng, $name, and ilCalendarSettings\TIME_FORMAT_24.
Referenced by ilLPCollectionSettingsTableGUI\fillRow(), ilTypicalLearningTimeInputGUI\insert(), ilMDEditorGUI\listEducational(), and ilMDEditorGUI\listQuickEdit_scorm().
|
static |
Return a string of time period.
Definition at line 60 of file class.ilLegacyFormElementsUtil.php.
References $DIC, ILIAS\LTI\ToolProvider\$key, $lng, ilDateTime\get(), IL_CAL_DATETIME, and IL_CAL_UNIX.
Referenced by ilObjExerciseAccess\_lookupRemainingWorkingTimeString(), ilExcAssMemberState\getRemainingTimePresentation(), and ilExAssignmentGUI\getTimeString().
|
static |
string | int | $a_str |
Definition at line 38 of file class.ilLegacyFormElementsUtil.php.
References ilUtil\stripSlashes().
Referenced by ilScormPlaceholderDescription\__construct(), ilExercisePlaceholderDescription\__construct(), ilTestPlaceholderDescription\__construct(), ilCoursePlaceholderDescription\__construct(), ilLTIConsumerPlaceholderDescription\__construct(), ilCmiXapiPlaceholderDescription\__construct(), ilObjUserGUI\__showUserDefinedFields(), ilPersonalProfileGUI\__showUserDefinedFields(), assClozeTestGUI\addBasicQuestionFormProperties(), assQuestionGUI\addBasicQuestionFormProperties(), ilInfoScreenGUI\addPropertyTextinput(), ilObjPDFGenerationGUI\buildConfigForm(), assFileUploadFileTableGUI\buildFileItemContent(), ilAssClozeTestFeedback\buildGapFeedbackLabel(), ilAssClozeTestFeedback\buildSelectGapOptionFeedbackLabel(), ilAssClozeTestFeedback\buildTextGapGivenAnswerFeedbackLabel(), ilObjSystemFolderGUI\changeHeaderTitleObject(), ilKprimChoiceCorrectionsInputGUI\checkInput(), ilKprimChoiceWizardInputGUI\checkInput(), ilStartUpGUI\confirmWithdrawal(), ilObjStyleSheetGUI\deleteColorConfirmationObject(), ilTable2GUI\deleteTemplate(), ilObjTest\deliverPDFfromHTML(), ilLMEditShortTitlesTableGUI\fillRow(), ilAssessmentFolderLogTableGUI\fillRow(), ilPCIIMPopupTableGUI\fillRow(), ilHelpTooltipTableGUI\fillRow(), ilTestHistoryTableGUI\fillRow(), ilLanguageExtTableGUI\fillRow(), ilLDAPRoleMappingTableGUI\fillRow(), ilPCTabsTableGUI\fillRow(), ilMultiSrtConfirmationTable2GUI\fillRow(), ilAssessmentFolderLogAdministrationTableGUI\fillRow(), ilKprimChoiceAnswerFreqStatTableGUI\fillRow(), ilPCGridCellTableGUI\fillRow(), ilWikiContributorsTableGUI\fillRow(), ilPortfolioTableGUI\fillRow(), ilObjectTranslationTableGUI\fillRow(), ilSurveyQuestionPoolExportTableGUI\fillRow(), ilMultilingualismTableGUI\fillRow(), ilHelpMappingTableGUI\fillRow(), ilStyleColorTableGUI\fillRow(), ilObjectTranslation2TableGUI\fillRow(), ilPortfolioPageTableGUI\fillRow(), ilExportIDTableGUI\fillRow(), ilTaxonomyTableGUI\fillRow(), ilImageMapTableGUI\fillRow(), ilSurveyQuestionblockbrowserTableGUI\fillRow(), ilListOfQuestionsTableGUI\fillRow(), ilQuestionPoolPrintViewTableGUI\fillRow(), ilExGradesTableGUI\fillRow(), ilWebResourceEditableLinkTableGUI\fillRow(), ilModulesTableGUI\fillRow(), ilSurveyQuestionbrowserTableGUI\fillRow(), ilMDCopyrightSelectionGUI\fillTemplate(), 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(), ilObjAssessmentFolderGUI\getLogDataOutputForm(), SurveyQuestionGUI\getMaterialOutput(), ilMailExplorer\getNodeContent(), ilTestServiceGUI\getPassListOfAnswersWithScoring(), ilStudyProgrammePlaceholderValues\getPlaceholderValues(), ilStudyProgrammePlaceholderValues\getPlaceholderValuesForPreview(), ilCoursePlaceholderValues\getPlaceholderValuesForPreview(), assOrderingHorizontalGUI\getPreview(), assSingleChoiceGUI\getPreview(), assMultipleChoiceGUI\getPreview(), assTextQuestionGUI\getPreview(), assKprimChoiceGUI\getPreview(), assImagemapQuestionGUI\getPreview(), assClozeTestGUI\getPreview(), SurveySingleChoiceQuestionGUI\getPrintView(), SurveyMultipleChoiceQuestionGUI\getPrintView(), SurveyMatrixQuestionGUI\getPrintView(), SurveyQuestionGUI\getPrintViewQuestionTitle(), assOrderingHorizontalGUI\getSolutionOutput(), assMultipleChoiceGUI\getSolutionOutput(), assSingleChoiceGUI\getSolutionOutput(), assMatchingQuestionGUI\getSolutionOutput(), assKprimChoiceGUI\getSolutionOutput(), assClozeTestGUI\getSolutionOutput(), 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(), ilRepositoryObjectSearchResultTableGUI\init(), ilPreviewGUI\initPreview(), ilMailSearchGUI\initSearchForm(), ilHiddenInputGUI\insert(), ilAssErrorTextCorrectionsInputGUI\insert(), ilAssSingleChoiceCorrectionsInputGUI\insert(), ilRandomTestROInputGUI\insert(), ilAssMultipleChoiceCorrectionsInputGUI\insert(), ilBackgroundImageInputGUI\insert(), ilSelectBuilderInputGUI\insert(), ilEMailInputGUI\insert(), ilUserLoginInputGUI\insert(), ilEssayKeywordWizardInputGUI\insert(), ilAssAnswerCorrectionsInputGUI\insert(), ilColorPickerInputGUI\insert(), ilMatrixRowWizardInputGUI\insert(), ilTRBLColorPickerInputGUI\insert(), ilFileWizardInputGUI\insert(), ilCSSRectInputGUI\insert(), ilMatchingPairWizardInputGUI\insert(), ilMultipleChoiceWizardInputGUI\insert(), ilImageWizardInputGUI\insert(), ilAnswerWizardInputGUI\insert(), ilErrorTextWizardInputGUI\insert(), ilKVPWizardInputGUI\insert(), ilCategoryWizardInputGUI\insert(), ilMatchingWizardInputGUI\insert(), ilTextAreaInputGUI\insert(), ilSingleChoiceWizardInputGUI\insert(), ilMDEditorGUI\listAnnotation(), ilMDEditorGUI\listClassification(), ilMDEditorGUI\listEducational(), ilMDEditorGUI\listGeneral(), ilMDEditorGUI\listLifecycle(), ilMDEditorGUI\listMetaMetaData(), ilMDEditorGUI\listQuickEdit_scorm(), ilMDEditorGUI\listRelation(), ilMDEditorGUI\listRights(), ilMDEditorGUI\listTechnical(), SurveyQuestionGUI\material(), assQuestionGUI\outPageSelector(), ilExerciseSubmissionTableGUI\parseColumns(), ilLuceneSearchGUI\performSearch(), assClozeTestGUI\populateNumericGapCorrectionFormProperty(), assClozeTestGUI\populateNumericGapFormPart(), ilCertificateUtilHelper\prepareFormOutput(), ilObjForumGUI\prepareFormOutput(), ilObjTestGUI\printobject(), ilDclMultiTextInputGUI\render(), ilGloAdvColSortInputGUI\render(), ilMailQuickFilterInputGUI\render(), ilNonEditableValueGUI\render(), ilTextWizardInputGUI\render(), ilCheckboxInputGUI\render(), ilMultipleTextsInputGUI\render(), ilSelectInputGUI\render(), ilMultiSelectInputGUI\render(), ilRepositorySelectorInputGUI\render(), ilTagInputGUI\render(), ilOrgUnitGenericMultiInputGUI\render(), ilOrgUnitMultiLineInputGUI\render(), ilDateTimeInputGUI\render(), ilPasswordInputGUI\render(), ilMultipleImagesInputGUI\render(), ilNumberInputGUI\render(), ilTextInputGUI\render(), ilDateDurationInputGUI\render(), ilHierarchyFormGUI\renderChild(), ilObjForumGUI\renderDraftContent(), ilTestQuestionSideListGUI\renderList(), ilObjForumGUI\renderPostContent(), ilObjTestGUI\reviewobject(), ilAccountRegistrationGUI\saveForm(), ilTable2GUI\saveTemplate(), ilHelpGUI\search(), ilMailFormGUI\searchUsers(), ilStartUpGUI\showAccountMigration(), ilPasswordAssistanceGUI\showAssistanceForm(), ilAccessibilityControlConceptGUI\showControlConcept(), ilHelpGUI\showPage(), ilLuceneSearchGUI\showSavedResults(), ilSearchGUI\showSearch(), ilLuceneUserSearchGUI\showSearchForm(), ilLuceneSearchGUI\showSearchForm(), ilStartUpGUI\showTermsOfService(), ilPersonalProfileGUI\showUserAgreement(), 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 ilAssQuestionHintsTableGUI\fillRow(), assTextQuestionGUI\getAutoSavedSolutionOutput(), ilAssMatchingPairCorrectionsInputGUI\insert(), SurveyQuestion\prepareTextareaOutput(), assQuestion\prepareTextareaOutput(), ilObjSurvey\prepareTextareaOutput(), ilObjTest\prepareTextareaOutput(), ilAnswerFrequencyStatisticTableGUI\purifyAndPrepareTextAreaOutput(), ilAssQuestionHintRequestGUI\showHintCmd(), and ilAssQuestionHintsGUI\showHintCmd().