css-sanitizer
Classes to parse and sanitize CSS
Loading...
Searching...
No Matches
Wikimedia\CSS\Sanitizer\FontFaceAtRuleSanitizer Class Reference

Sanitizes a CSS @font-face rule. More...

+ Inheritance diagram for Wikimedia\CSS\Sanitizer\FontFaceAtRuleSanitizer:
+ Collaboration diagram for Wikimedia\CSS\Sanitizer\FontFaceAtRuleSanitizer:

Public Member Functions

 __construct (MatcherFactory $matcherFactory)
 
 handlesRule (Rule $rule)
 @inheritDoc
 
- Public Member Functions inherited from Wikimedia\CSS\Sanitizer\RuleSanitizer
 getIndex ()
 Return an integer indicating ordering constraints.
 
- Public Member Functions inherited from Wikimedia\CSS\Sanitizer\Sanitizer
 getSanitizationErrors ()
 Return all sanitization errors seen so far.
 
 stashSanitizationErrors ()
 Temporarily clear sanitization errors.
 
 clearSanitizationErrors ()
 Clear sanitization errors.
 
 sanitize (CSSObject $object)
 Sanitize a CSS object.
 

Static Public Member Functions

static fontMatchData (MatcherFactory $matcherFactory)
 Get some shared data for font declaration matchers.
 

Protected Member Functions

 doSanitize (CSSObject $object)
 @inheritDoc
 
- Protected Member Functions inherited from Wikimedia\CSS\Sanitizer\RuleSanitizer
 sanitizeDeclarationBlock (SimpleBlock $block, PropertySanitizer $sanitizer)
 Sanitize a block's contents as a DeclarationList, in place.
 
 sanitizeRuleBlock (SimpleBlock $block, array $sanitizers)
 Sanitize a block's contents as a RuleList, in place.
 
 fixPreludeWhitespace (AtRule $rule, $cloneIfNecessary)
 For the whitespace at the start of the prelude.
 
- Protected Member Functions inherited from Wikimedia\CSS\Sanitizer\Sanitizer
 sanitizationError ( $tag, CSSObject $object, array $data=[])
 Record a sanitization error.
 
 sanitizeObj (Sanitizer $sanitizer, CSSObject $object)
 Run another sanitizer over a CSSObject.
 
 sanitizeList (Sanitizer $sanitizer, CSSObjectList $list)
 Run a sanitizer over all CSSObjects in a CSSObjectList.
 
 sanitizeRules (array $ruleSanitizers, RuleList $list)
 Run a set of RuleSanitizers over all rules in a RuleList.
 

Protected Attributes

 $propertySanitizer
 
- Protected Attributes inherited from Wikimedia\CSS\Sanitizer\Sanitizer
 $sanitizationErrors = []
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikimedia\CSS\Sanitizer\FontFaceAtRuleSanitizer::__construct ( MatcherFactory $matcherFactory)
Parameters
MatcherFactory$matcherFactory

Member Function Documentation

◆ doSanitize()

Wikimedia\CSS\Sanitizer\FontFaceAtRuleSanitizer::doSanitize ( CSSObject $object)
protected

@inheritDoc

Reimplemented from Wikimedia\CSS\Sanitizer\Sanitizer.

◆ fontMatchData()

static Wikimedia\CSS\Sanitizer\FontFaceAtRuleSanitizer::fontMatchData ( MatcherFactory $matcherFactory)
static

Get some shared data for font declaration matchers.

Parameters
MatcherFactory$matcherFactory
Returns
array

◆ handlesRule()

Wikimedia\CSS\Sanitizer\FontFaceAtRuleSanitizer::handlesRule ( Rule $rule)

@inheritDoc

Reimplemented from Wikimedia\CSS\Sanitizer\RuleSanitizer.


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