Cms\Classes\MediaLibrary

Source: ~/modules/cms/classes/MediaLibrary.php

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