System\Classes\MediaLibrary

Extends:

Provides abstraction level for the Media Library operations. Implements the library caching features and security checks.

Protected properties

There are no protected properties in the class.

Show inherited protected properties

Inherited protected properties

Public methods

Show inherited public methods

Inherited public methods

Protected methods

protected void init()

Initialize this singleton.

Show inherited protected methods

Inherited protected methods

  • protected void __construct() - defined in Media\Classes\MediaLibrary. Constructor.
  • protected void filterItemList(array &$itemList, string $filter) - defined in Media\Classes\MediaLibrary. Filters item list by file type.
  • protected void generateRandomTmpFolderName($location) - defined in Media\Classes\MediaLibrary.
  • protected integer getFolderItemCount(string $path) - defined in Media\Classes\MediaLibrary. Returns a number of items on a folder.
  • protected string getMediaPath(string $path) - defined in Media\Classes\MediaLibrary. Returns a file or folder path with the prefixed storage folder.
  • protected string getMediaRelativePath(string $path) - defined in Media\Classes\MediaLibrary. Returns path relative to the Library root folder.
  • protected mixed getStorageDisk() - defined in Media\Classes\MediaLibrary. Initializes and returns the Media Library disk.
  • protected mixed initLibraryItem(string $path, string $itemType) - defined in Media\Classes\MediaLibrary. Initializes a library item from a path and item type.
  • protected boolean isVisible(string $path) - defined in Media\Classes\MediaLibrary. Determines if the path should be visible (not ignored).
  • protected boolean pathMatchesSearch(string $path, array $words) - defined in Media\Classes\MediaLibrary. Determines if file path contains all words form the search term.
  • protected array scanFolderContents(string $fullFolderPath) - defined in Media\Classes\MediaLibrary. Fetches the contents of a folder from the Library.
  • protected void sortItemList(array &$itemList, mixed $sortSettings) - defined in Media\Classes\MediaLibrary. Sorts the item list by title, size or last modified date.