ResourceUtility

Utility class for the File Abstraction Layer (aka subpackage Resource in EXT:core)

Deprecated

This class will be removed in TYPO3 v13.

Table of Contents

Methods

nameCompareSortingHelper()  : int
This is a helper method that can be used with u?sort methods to sort a list of names in natural order. With capitalized first if both equal in lowercase.
recursiveFileListSortingHelper()  : int
This is a helper method that can be used with u?sort methods to sort a list of (relative) file paths, e.g.

Methods

nameCompareSortingHelper()

This is a helper method that can be used with u?sort methods to sort a list of names in natural order. With capitalized first if both equal in lowercase.

public static nameCompareSortingHelper(string $elementA, string $elementB) : int
Parameters
$elementA : string
$elementB : string
Return values
int

recursiveFileListSortingHelper()

This is a helper method that can be used with u?sort methods to sort a list of (relative) file paths, e.g.

public static recursiveFileListSortingHelper(string $elementA, string $elementB) : int

array("someDir/fileA", "fileA", "fileB", "anotherDir/fileA").

Directories are sorted first in the lists, with the deepest structures first (while every level is sorted alphabetically)

Parameters
$elementA : string
$elementB : string
Return values
int

        
On this page

Search results