|
ILIAS
release_8 Revision v8.24
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Collaboration diagram for ilArrayUtil:Static Public Member Functions | |
| static | quoteArray (array $a_array) |
| Quotes all members of an array for usage in DB query statement. More... | |
| static | stripSlashesRecursive ($a_data, bool $a_strip_html=true, string $a_allow="") |
| static | stripSlashesArray (array $a_arr, bool $a_strip_html=true, string $a_allow="") |
| static | sortArray (array $array, string $a_array_sortby_key, string $a_array_sortorder="asc", bool $a_numeric=false, bool $a_keep_keys=false) |
| static | stableSortArray (array $array, string $a_array_sortby, string $a_array_sortorder="asc", bool $a_numeric=false) |
| Sort an aray using a stable sort algorithm, which preveserves the sequence of array elements which have the same sort value. More... | |
Static Private Member Functions | |
| static | sort_func (array $left, array $right) |
| static | sort_func_numeric (array $left, array $right) |
| static | mergesort (array &$array, callable $cmp_function=null) |
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 ilArrayUtil class various functions, usage as namespace
Definition at line 32 of file class.ilArrayUtil.php.
|
staticprivate |
| array | $array | |
| callable | $cmp_function |
Definition at line 180 of file class.ilArrayUtil.php.
References mergesort().
Referenced by mergesort().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Quotes all members of an array for usage in DB query statement.
Definition at line 39 of file class.ilArrayUtil.php.
Referenced by ilObjGroup\_isMember(), ilUtil\_sortIds(), ilTree\getChildsByTypeFilter(), and ilObjGroup\getGroupMemberData().
Here is the caller graph for this function:
|
staticprivate |
Definition at line 133 of file class.ilArrayUtil.php.
References ilStr\strCmp().
Here is the call graph for this function:
|
staticprivate |
Definition at line 159 of file class.ilArrayUtil.php.
|
static |
Definition at line 94 of file class.ilArrayUtil.php.
References stableSortArray().
Referenced by ilSkillCatTableGUI\__construct(), ilBenchmarkTableGUI\__construct(), ilTaxonomyTableGUI\__construct(), ilUserDefinedFields\__read(), ilCourseObjectiveMaterials\_getAssignableMaterials(), ilExport\_getLastExportFileDate(), ilExport\_getLastExportFileInformation(), ilInfoScreenGUI\addPreconditions(), ilCalendarSchedule\calculate(), ilColumnGUI\determineBlocks(), ilLMTracker\determineProgressStatus(), ilObjTypeDefinitionGUI\editObject(), ilTable2GUI\exportData(), ilObjExercise\exportGradesExcel(), ilGlobalTemplate\fillFooter(), ilPollBlockGUI\fillRow(), ilClassificationBlockGUI\filterContainer(), ilTaxonomyNode\fixOrderNumbers(), ilItemGroupItems\getAssignableItems(), ilCalendarSelectionBlockGUI\getCalendars(), ilSkillTree\getChildsByTypeFilter(), ilPersonalSkillExplorerGUI\getChildsOfNode(), ilModulesTableGUI\getComponents(), ilBenchmarkTableGUI\getDataByFirstTable(), ilSessionMaterialsTableGUI\getDataFromDb(), ilFSStorageExercise\getFiles(), ilFSWebStorageExercise\getFiles(), ilContainerFilterFieldData\getFilterSetForRefId(), ilObjectDefinition\getGroupedRepositoryObjectTypes(), ilExAssignmentTeam\getGroupMembersMap(), ilNewItemGroupTableGUI\getGroups(), ilDclCreateViewTableGUI\getHTML(), ilDclEditViewTableGUI\getHTML(), ilDclFieldListTableGUI\getHTML(), ilDclTableListTableGUI\getHTML(), ilDclTableViewEditFieldsTableGUI\getHTML(), ilDclTableViewTableGUI\getHTML(), ilCalendarAgendaListGUI\getHTML(), ilTable2GUI\getHTML(), ilTestManScoringParticipantsTableGUI\getInternalyOrderedDataValues(), ilPCIIMTriggerTableGUI\getItems(), ilPCImageMapTableGUI\getItems(), ilUserRoleStartingPointTableGUI\getItems(), ilBookingInfoScreenAdapter\getList(), ILIAS\Awareness\WidgetManager\getListData(), ilObjAssessmentFolderGUI\getLogDataOutputForm(), ilItemGroupItemsTableGUI\getMaterials(), ilCourseMembershipGUI\getPrintMemberData(), ilObjMediaCast\getSortedItemsArray(), ilObjectDefinition\getSubObjects(), ilObjectActivation\getTimingsAdministrationItems(), ilObjUserTrackingGUI\initLPDefaultsForm(), ilLTIConsumerGradeSynchronizationGUI\initTableData(), ilPCQuestionGUI\insert(), ilObjectListGUI\insertPreconditions(), ilBadgeProfileGUI\listBadges(), ilCourseParticipantsTableGUI\parse(), ilGroupParticipantsTableGUI\parse(), ilLearningSequenceParticipantsTableGUI\parse(), ilSCORMTrackingUsersTableGUI\parse(), ilTimingsPersonalTableGUI\parse(), ilObjectAddNewItemGUI\parsePersonalWorkspace(), ilObjectAddNewItemGUI\parseRepository(), ilTreeExplorerGUI\preloadChilds(), ilContentStyleSettings\read(), ilContainerContentGUI\renderPageEmbeddedBlocks(), ILIAS\Skill\Tree\SkillTreeNodeManager\saveChildsOrder(), ilWikiPageGUI\searchWikiLinkAC(), ilContainerSessionsContentGUI\showMaterials(), ilExerciseManagementGUI\showParticipantObject(), ilLMPresentationGUI\showPrintView(), ilWebLinkItemsContainer\sort(), ilRepositoryExplorerGUI\sortChilds(), ilTableGUI\sortData(), ilContainerSorting\sortItems(), ilExplorer\sortNodes(), ilWorkspaceFolderSorting\sortNodes(), ilContainerSorting\sortOrderDefault(), ilCourseObjectiveQuestionAssignmentTableGUI\sortQuestions(), ilContainerSorting\sortSubItems(), ilAdvancedMDSettingsGUI\updateSubstitutions(), and ilObjTypeDefinitionGUI\viewObject().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Sort an aray using a stable sort algorithm, which preveserves the sequence of array elements which have the same sort value.
To sort an array by multiple sort keys, invoke this function for each sort key.
Definition at line 232 of file class.ilArrayUtil.php.
Referenced by ilSCORM2004TrackingItemsTableGUI\getItems(), ilSCORMTrackingItemsTableGUI\getItems(), ilBookingInfoScreenAdapter\getList(), and sortArray().
Here is the caller graph for this function:
|
static |
Definition at line 82 of file class.ilArrayUtil.php.
References ilUtil\stripSlashes().
Referenced by ilSkillProfileGUI\saveLevelOrder(), ilBasicSkillGUI\updateLevelOrder(), ilExerciseManagementGUI\uploadMultiFeedbackObject(), ilMobMultiSrtUploadGUI\uploadMultipleSubtitleFile(), and ilObjMediaObjectGUI\uploadMultipleSubtitleFileObject().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
| $data | string|array |
Definition at line 62 of file class.ilArrayUtil.php.
References ilUtil\stripSlashes(), and stripSlashesRecursive().
Referenced by ilAnswerWizardInputGUI\checkInput(), ilErrorTextWizardInputGUI\checkInput(), ilEssayKeywordWizardInputGUI\checkInput(), ilImageWizardInputGUI\checkInput(), ilKprimChoiceWizardInputGUI\checkInput(), ilKVPWizardInputGUI\checkInput(), ilMatchingPairWizardInputGUI\checkInput(), ilMatchingWizardInputGUI\checkInput(), ilMultipleChoiceWizardInputGUI\checkInput(), ilSingleChoiceWizardInputGUI\checkInput(), ilImagemapCorrectionsInputGUI\checkInput(), assQuestionGUI\cleanupAnswerText(), ilKprimChoiceWizardInputGUI\cleanupAnswerText(), ILIAS\SurveyQuestionPool\Editing\EditingGUIRequest\getAnswers(), ILIAS\SurveyQuestionPool\Editing\EditingGUIRequest\getColumns(), ilGloAdvColSortInputGUI\getInput(), ilCategoryWizardInputGUI\getInput(), ilMatrixRowWizardInputGUI\getInput(), ilImagemapFileInputGUI\getPostBody(), ILIAS\SurveyQuestionPool\Editing\EditingGUIRequest\getRows(), assLongMenu\getSolutionSubmit(), ilMultiFilesSubmitRecursiveSlashesStripper\manipulateFileSubmitValues(), stripSlashesRecursive(), and assLongMenuGUI\writeQuestionSpecificPostData().
Here is the call graph for this function:
Here is the caller graph for this function: