XpressEngine Core  1.11.2
 All Classes Namespaces Files Functions Variables Pages
Public Member Functions | Public Attributes | List of all members
EmbedFilter Class Reference

Public Member Functions

 __construct ()
 
 getInstance ()
 
 getWhiteUrlList ()
 
 getWhiteIframeUrlList ()
 
 check (&$content)
 
 checkObjectTag (&$content)
 
 checkEmbedTag (&$content)
 
 checkIframeTag (&$content)
 
 checkParamTag (&$content)
 
 isWhiteDomain ($urlAttribute)
 
 isWhiteIframeDomain ($urlAttribute)
 
 isWhiteMimetype ($mimeType)
 
 isWhiteExt ($ext)
 
 _checkAllowScriptAccess ($m)
 
 _addAllowScriptAccess ($m)
 
 _makeWhiteDomainList ($whitelist=NULL)
 

Public Attributes

 $allowscriptaccessList = array()
 
 $allowscriptaccessKey = 0
 
 $whiteUrlXmlFile = './classes/security/conf/embedWhiteUrl.xml'
 
 $whiteUrlCacheFile = './files/cache/embedfilter/embedWhiteUrl.php'
 
 $whiteUrlList = array()
 
 $whiteIframeUrlList = array()
 
 $parser = NULL
 
 $mimeTypeList
 
 $extList
 

Detailed Description

Definition at line 6 of file EmbedFilter.class.php.

Constructor & Destructor Documentation

EmbedFilter::__construct ( )
Returns
void

Definition at line 263 of file EmbedFilter.class.php.

Member Function Documentation

EmbedFilter::_addAllowScriptAccess (   $m)

Definition at line 581 of file EmbedFilter.class.php.

EmbedFilter::_checkAllowScriptAccess (   $m)

Definition at line 548 of file EmbedFilter.class.php.

EmbedFilter::_makeWhiteDomainList (   $whitelist = NULL)

Make white domain list cache file from xml config file.

Parameters
$whitelistarray
Returns
void

Definition at line 596 of file EmbedFilter.class.php.

EmbedFilter::check ( $content)

Check the content.

Returns
void

Definition at line 300 of file EmbedFilter.class.php.

EmbedFilter::checkEmbedTag ( $content)

Check embed tag in the content.

Returns
void

Definition at line 363 of file EmbedFilter.class.php.

EmbedFilter::checkIframeTag ( $content)

Check iframe tag in the content.

Returns
void

Definition at line 411 of file EmbedFilter.class.php.

EmbedFilter::checkObjectTag ( $content)

Check object tag in the content.

Returns
void

Definition at line 315 of file EmbedFilter.class.php.

EmbedFilter::checkParamTag ( $content)

Check param tag in the content.

Returns
void

Definition at line 454 of file EmbedFilter.class.php.

EmbedFilter::getInstance ( )

Return EmbedFilter object This method for singleton

Returns
EmbedFilter

Definition at line 277 of file EmbedFilter.class.php.

EmbedFilter::getWhiteIframeUrlList ( )

Definition at line 291 of file EmbedFilter.class.php.

EmbedFilter::getWhiteUrlList ( )

Definition at line 286 of file EmbedFilter.class.php.

EmbedFilter::isWhiteDomain (   $urlAttribute)

Check white domain in object data attribute or embed src attribute.

Returns
string

Definition at line 492 of file EmbedFilter.class.php.

EmbedFilter::isWhiteExt (   $ext)

Definition at line 539 of file EmbedFilter.class.php.

EmbedFilter::isWhiteIframeDomain (   $urlAttribute)

Check white domain in iframe src attribute.

Returns
string

Definition at line 511 of file EmbedFilter.class.php.

EmbedFilter::isWhiteMimetype (   $mimeType)

Check white mime type in object type attribute or embed type attribute.

Returns
string

Definition at line 530 of file EmbedFilter.class.php.

Member Data Documentation

EmbedFilter::$allowscriptaccessKey = 0

Definition at line 19 of file EmbedFilter.class.php.

EmbedFilter::$allowscriptaccessList = array()

Definition at line 13 of file EmbedFilter.class.php.

EmbedFilter::$extList

Definition at line 203 of file EmbedFilter.class.php.

EmbedFilter::$mimeTypeList

Definition at line 25 of file EmbedFilter.class.php.

EmbedFilter::$parser = NULL

Definition at line 24 of file EmbedFilter.class.php.

EmbedFilter::$whiteIframeUrlList = array()

Definition at line 23 of file EmbedFilter.class.php.

EmbedFilter::$whiteUrlCacheFile = './files/cache/embedfilter/embedWhiteUrl.php'

Definition at line 21 of file EmbedFilter.class.php.

EmbedFilter::$whiteUrlList = array()

Definition at line 22 of file EmbedFilter.class.php.

EmbedFilter::$whiteUrlXmlFile = './classes/security/conf/embedWhiteUrl.xml'

Definition at line 20 of file EmbedFilter.class.php.


The documentation for this class was generated from the following file: