Charset
in package
implements
AtRule, Positionable
Uses
Position
Class representing an `@charset` rule.
The following restrictions apply:
- May not be found in any CSSList other than the Document.
- May only appear at the very top of a Document’s contents.
- Must not appear more than once.
Interfaces, Classes and Traits
- AtRule
- Positionable
- Represents a CSS item that may have a position in the source CSS document (line number and possibly column number).
Table of Contents
- $oCharset : CSSString
- __construct() : mixed
- __toString() : string
- addComments() : void
- atRuleArgs() : string
- atRuleName() : string
- getCharset() : string
- getComments() : array<array-key, Comment>
- render() : string
- setCharset() : void
- setComments() : void
Properties
$oCharset
private
CSSString
$oCharset
Methods
__construct()
public
__construct(CSSString $oCharset, int $iLineNo) : mixed
Parameters
- $oCharset : CSSString
- $iLineNo : int
Return values
mixed —__toString()
public
__toString() : string
Tags
Return values
string —addComments()
public
addComments(array<array-key, Comment> $aComments) : void
Parameters
- $aComments : array<array-key, Comment>
Return values
void —atRuleArgs()
public
atRuleArgs() : string
Return values
string —atRuleName()
public
atRuleName() : string
Return values
string —getCharset()
public
getCharset() : string
Return values
string —getComments()
public
getComments() : array<array-key, Comment>
Return values
array<array-key, Comment> —render()
public
render(OutputFormat|null $oOutputFormat) : string
Parameters
- $oOutputFormat : OutputFormat|null
Return values
string —setCharset()
public
setCharset(mixed $sCharset) : void
Parameters
- $sCharset : mixed
Return values
void —setComments()
public
setComments(array<array-key, Comment> $aComments) : void
Parameters
- $aComments : array<array-key, Comment>
