|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
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
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.ilArrayUtil.php.
|
staticprivate |
| array | $array | |
| callable | $cmp_function |
Definition at line 178 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 38 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 131 of file class.ilArrayUtil.php.
References ilStr\strCmp().
Here is the call graph for this function:
|
staticprivate |
Definition at line 157 of file class.ilArrayUtil.php.
|
static |
Definition at line 92 of file class.ilArrayUtil.php.
References stableSortArray().
Referenced by ilSkillCatTableGUI\__construct(), ilBenchmarkTableGUI\__construct(), ilTaxonomyTableGUI\__construct(), ilCourseObjectiveMaterials\_getAssignableMaterials(), ilExport\_getLastExportFileDate(), ilExport\_getLastExportFileInformation(), ilInfoScreenGUI\addPreconditions(), ilCalendarSchedule\calculate(), ilColumnGUI\determineBlocks(), ilLMTracker\determineProgressStatus(), ilObjTypeDefinitionGUI\editObject(), ilTable2GUI\exportData(), ilObjExercise\exportGradesExcel(), ilClassificationBlockGUI\filterContainer(), ilTaxonomyNode\fixOrderNumbers(), ilTaxonomyClassificationProvider\getActiveTaxonomiesForParentRefId(), ilItemGroupItems\getAssignableItems(), ilCalendarSelectionBlockGUI\getCalendars(), ilSkillTree\getChildsByTypeFilter(), ilPersonalSkillExplorerGUI\getChildsOfNode(), ilModulesTableGUI\getComponents(), ilBenchmarkTableGUI\getDataByFirstTable(), ilContainerFilterFieldData\getFilterSetForRefId(), ilObjectDefinition\getGroupedRepositoryObjectTypes(), ilExAssignmentTeam\getGroupMembersMap(), ilNewItemGroupTableGUI\getGroups(), ilCalendarAgendaListGUI\getHTML(), ilDclCreateViewTableGUI\getHTML(), ilDclEditViewTableGUI\getHTML(), ilDclFieldListTableGUI\getHTML(), ilDclTableViewEditFieldsTableGUI\getHTML(), ilTable2GUI\getHTML(), ilPCImageMapTableGUI\getItems(), ilUserRoleStartingPointTableGUI\getItems(), ilBookingInfoScreenAdapter\getList(), ILIAS\Awareness\WidgetManager\getListData(), ilItemGroupItemsTableGUI\getMaterials(), ilCourseMembershipGUI\getPrintMemberData(), ILIAS\LDAP\Server\UI\ServerTable\getRecords(), ilObjMediaCast\getSortedItemsArray(), ilObjectDefinition\getSubObjects(), ilObjectActivation\getTimingsAdministrationItems(), ILIAS\Taxonomy\Usage\UsageDBRepository\getUsageOfObject(), ilObjUserTrackingGUI\initLPDefaultsForm(), ilContainerSessionsContentGUI\initSessionPresentationLimitation(), ilPCQuestionGUI\insert(), ilObjectListGUI\insertPreconditions(), ilCourseParticipantsTableGUI\parse(), ilGroupParticipantsTableGUI\parse(), ilLearningSequenceParticipantsTableGUI\parse(), ilSCORMTrackingUsersTableGUI\parse(), ilTimingsPersonalTableGUI\parse(), ilTreeExplorerGUI\preloadChilds(), ilContentStyleSettings\read(), ilContainerContentGUI\renderPageEmbeddedBlocks(), ILIAS\Skill\Node\SkillTreeNodeManager\saveChildsOrder(), ilWikiPageGUI\searchWikiLinkAC(), ilExerciseManagementGUI\showParticipantObject(), ilLMPresentationGUI\showPrintView(), ilWebLinkItemsContainer\sortArray(), ilRepositoryExplorerGUI\sortChilds(), ilTableGUI\sortData(), ilContainerSorting\sortItems(), ilExplorer\sortNodes(), ilWorkspaceFolderSorting\sortNodes(), ilContainerSorting\sortOrderDefault(), ilCourseObjectiveQuestionAssignmentTableGUI\sortQuestions(), ILIAS\Container\Content\ItemSetManager\sortSessions(), 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 230 of file class.ilArrayUtil.php.
Referenced by ilSessionMaterialsTableGUI\getDataFromDb(), ilSCORM2004TrackingItemsTableGUI\getItems(), ilSCORMTrackingItemsTableGUI\getItems(), ilBookingInfoScreenAdapter\getList(), sortArray(), ILIAS\components\Authentication\Pages\AuthPageLanguagesOverviewTable\sortedRecords(), ILIAS\Chatroom\Bans\BannedUsersTable\sortedRecords(), ILIAS\Contact\MailingLists\MailingListsMembersTable\sortedRecords(), ILIAS\Contact\MailingLists\MailingListsTable\sortedRecords(), ILIAS\Contact\MemberSearch\MailMemberSearchTable\sortedRecords(), and ILIAS\Forum\Moderation\ForumModeratorsTable\sortedRecords().
Here is the caller graph for this function:
|
static |
Definition at line 80 of file class.ilArrayUtil.php.
References ilUtil\stripSlashes().
Referenced by ilSkillProfileGUI\saveLevelOrder(), ilBasicSkillGUI\updateLevelOrder(), 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 60 of file class.ilArrayUtil.php.
References ilUtil\stripSlashes(), and stripSlashesRecursive().
Referenced by assQuestionGUI\cleanupAnswerText(), ilKprimChoiceWizardInputGUI\cleanupAnswerText(), ILIAS\SurveyQuestionPool\Editing\EditingGUIRequest\getAnswers(), ILIAS\SurveyQuestionPool\Editing\EditingGUIRequest\getColumns(), ilCategoryWizardInputGUI\getInput(), ilMatrixRowWizardInputGUI\getInput(), ilImagemapFileInputGUI\getPostBody(), ILIAS\SurveyQuestionPool\Editing\EditingGUIRequest\getRows(), ilMultiFilesSubmitRecursiveSlashesStripper\manipulateFileSubmitValues(), ilPasswordAssistanceGUI\saniziteArrayElementsTrafo(), ilStartUpGUI\saniziteArrayElementsTrafo(), ilOpenIdConnectSettingsGUI\saniziteArrayElementsTrafo(), stripSlashesRecursive(), and assLongMenuGUI\writeQuestionSpecificPostData().
Here is the call graph for this function:
Here is the caller graph for this function: