Skip to content
Docs

Class and function reference

MediaFilter

List of public methods of the Zittme\Framework\Filters\MediaFilter class. This document was automatically generated from the Zittme core source.

Source: common/framework/filters/MediaFilter.php

Public methods

  • static function addPrefix(string $prefix, bool $permanently = false)
  • Add a prefix to the iframe whitelist.
  • static function addIframePrefix(string $prefix, bool $permanently = false)
  • Add a prefix to the object whitelist.
  • static function addObjectPrefix()
  • Add a prefix to the object whitelist.
  • static function formatPrefix(string $prefix)
  • Format a prefix for standardization.
  • static function getWhitelist()
  • Get the iframe whitelist.
  • static function getWhitelistRegex()
  • Get the iframe whitelist as a regular expression.
  • static function matchWhitelist(string $url)
  • Check if a URL matches the iframe whitelist.
  • static function removeEmbeddedMedia(string $input, string $replacement = '')
  • Remove embedded media from HTML content.
  • static function getIframeWhitelist()
  • Get the iframe whitelist.
  • static function getIframeWhitelistRegex()
  • Get the iframe whitelist as a regular expression.
  • static function matchIframeWhitelist(string $url)
  • Check if a URL matches the iframe whitelist.
  • static function getObjectWhitelist()
  • Get the object whitelist.
  • static function getObjectWhitelistRegex()
  • Get the object whitelist as a regular expression.
  • static function matchObjectWhitelist(string $url)
  • Check if a URL matches the iframe whitelist.