跳到主要內容
文件

類別・函式規格

MediaFilter

Zittme\Framework\Filters\MediaFilter 類別的公開方法清單。本文件由 Zittme 核心原始碼自動產生。

原始碼:common/framework/filters/MediaFilter.php

公開方法

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