[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/js/dist/ -> blob.js (summary)

Browser dependencies

File Size: 129 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 5 functions

  createBlobURL()
  getBlobByURL()
  getBlobTypeByURL()
  revokeBlobURL()
  isBlobURL()

Functions
Functions that are not part of a class:

createBlobURL(file)   X-Ref
Create a blob URL from a file.

param: {File} file The file to create a blob URL for.
return: {string} The blob URL.

getBlobByURL(url)   X-Ref
Retrieve a file based on a blob URL. The file must have been created by
`createBlobURL` and not removed by `revokeBlobURL`, otherwise it will return
`undefined`.

param: {string} url The blob URL.
return: {File|undefined} The file for the blob URL.

getBlobTypeByURL(url)   X-Ref
Retrieve a blob type based on URL. The file must have been created by
`createBlobURL` and not removed by `revokeBlobURL`, otherwise it will return
`undefined`.

param: {string} url The blob URL.
return: {string|undefined} The blob type.

revokeBlobURL(url)   X-Ref
Remove the resource and file cache from memory.

param: {string} url The blob URL.

isBlobURL(url)   X-Ref
Check whether a url is a blob url.

param: {string} url The URL.
return: {boolean} Is the url a blob url?



Generated: Sun Dec 22 01:00:02 2024 Cross-referenced by PHPXref 0.7.1