[ 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.

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

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`.

return: {File|undefined} The file for the blob URL.
param: {string} url 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`.

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

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.

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



Generated: Thu Nov 21 01:00:03 2024 Cross-referenced by PHPXref 0.7.1