Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
Sabberworm\CSS\CSSList\KeyFrame Class Reference
Inheritance diagram for Sabberworm\CSS\CSSList\KeyFrame:
Sabberworm\CSS\CSSList\CSSList Sabberworm\CSS\Property\AtRule Sabberworm\CSS\Renderable Sabberworm\CSS\Comment\Commentable Sabberworm\CSS\Renderable Sabberworm\CSS\Comment\Commentable

Public Member Functions

 __construct ($iLineNo=0)
 
 __toString ()
 
 addComments (array $aComments)
 
 append ($oItem)
 Appends an item to tje list of contents.
 
 atRuleArgs ()
 
 atRuleName ()
 
 getAnimationName ()
 
 getComments ()
 
 getContents ()
 
 getLineNo ()
 
 getVendorKeyFrame ()
 
 insert ($oItem, $oSibling)
 Insert an item before its sibling.
 
 isRootList ()
 
 prepend ($oItem)
 Prepends an item to the list of contents.
 
 remove ($oItemToRemove)
 Removes an item from the CSS list.
 
 removeDeclarationBlockBySelector ($mSelector, $bRemoveAll=false)
 Removes a declaration block from the CSS list if it matches all given selectors.
 
 render (OutputFormat $oOutputFormat)
 
 replace ($oOldItem, $mNewItem)
 Replaces an item from the CSS list.
 
 setAnimationName ($animationName)
 
 setComments (array $aComments)
 
 setContents (array $aContents)
 
 setVendorKeyFrame ($vendorKeyFrame)
 
 splice ($iOffset, $iLength=null, $mReplacement=null)
 Splices the list of contents.
 

Static Public Member Functions

static parseList (ParserState $oParserState, CSSList $oList)
 

Public Attributes

string const BLOCK_RULES = 'media/document/supports/region-style/font-feature-values'
 
$this iLineNo = $iLineNo
 
string const SET_RULES = 'font-face/counter-style/page/swash/styleset/annotation'
 … and more font-specific ones (to be used inside font-feature-values)
 

Protected Attributes

array< array-key, $aComments;protected array< int, $aContents;protected int $iLineNo;public function __construct( $iLineNo=0) { $this->aComments=[];$this-> aContents = []
 Comment>
 

Constructor & Destructor Documentation

◆ __construct()

Sabberworm\CSS\CSSList\KeyFrame::__construct ( $iLineNo = 0)
Parameters
int$iLineNo

Member Function Documentation

◆ __toString()

Sabberworm\CSS\CSSList\KeyFrame::__toString ( )
Return values
string

Reimplemented from Sabberworm\CSS\CSSList\CSSList.

◆ addComments()

Sabberworm\CSS\CSSList\CSSList::addComments ( array $aComments)
inherited
Parameters
array<array-key,Comment>$aComments
Return values
void

Implements Sabberworm\CSS\Comment\Commentable.

◆ append()

Sabberworm\CSS\CSSList\CSSList::append ( $oItem)
inherited

Appends an item to tje list of contents.

Parameters
RuleSet | CSSList | Import | Charset$oItem
Return values
void

◆ atRuleArgs()

Sabberworm\CSS\CSSList\KeyFrame::atRuleArgs ( )
Return values
string|null

Implements Sabberworm\CSS\Property\AtRule.

◆ atRuleName()

Sabberworm\CSS\CSSList\KeyFrame::atRuleName ( )
Return values
string|null

Implements Sabberworm\CSS\Property\AtRule.

◆ getAnimationName()

Sabberworm\CSS\CSSList\KeyFrame::getAnimationName ( )
Return values
string|null

◆ getComments()

Sabberworm\CSS\CSSList\CSSList::getComments ( )
inherited
Return values
array<array-key,Comment>

Implements Sabberworm\CSS\Comment\Commentable.

◆ getContents()

Sabberworm\CSS\CSSList\CSSList::getContents ( )
inherited
Return values
array<int,RuleSet|Import|Charset|CSSList>

◆ getLineNo()

Sabberworm\CSS\CSSList\CSSList::getLineNo ( )
inherited
Return values
int

Implements Sabberworm\CSS\Renderable.

◆ getVendorKeyFrame()

Sabberworm\CSS\CSSList\KeyFrame::getVendorKeyFrame ( )
Return values
string|null

◆ insert()

Sabberworm\CSS\CSSList\CSSList::insert ( $oItem,
$oSibling )
inherited

Insert an item before its sibling.

Parameters
mixed$oItemThe item.
mixed$oSiblingThe sibling.

◆ isRootList()

Sabberworm\CSS\CSSList\KeyFrame::isRootList ( )
Return values
bool

Reimplemented from Sabberworm\CSS\CSSList\CSSList.

◆ parseList()

static Sabberworm\CSS\CSSList\CSSList::parseList ( ParserState $oParserState,
CSSList $oList )
staticinherited
Return values
void
Exceptions
UnexpectedTokenException
SourceException

◆ prepend()

Sabberworm\CSS\CSSList\CSSList::prepend ( $oItem)
inherited

Prepends an item to the list of contents.

Parameters
RuleSet | CSSList | Import | Charset$oItem
Return values
void

◆ remove()

Sabberworm\CSS\CSSList\CSSList::remove ( $oItemToRemove)
inherited

Removes an item from the CSS list.

Parameters
RuleSet | Import | Charset | CSSList$oItemToRemoveMay be a RuleSet (most likely a DeclarationBlock), a Import, a Charset or another CSSList (most likely a MediaQuery)
Return values
boolwhether the item was removed

◆ removeDeclarationBlockBySelector()

Sabberworm\CSS\CSSList\CSSList::removeDeclarationBlockBySelector ( $mSelector,
$bRemoveAll = false )
inherited

Removes a declaration block from the CSS list if it matches all given selectors.

Parameters
DeclarationBlock|array<array-key,Selector>|string$mSelector the selectors to match
bool$bRemoveAllwhether to stop at the first declaration block found or remove all blocks
Return values
void

◆ render()

Sabberworm\CSS\CSSList\KeyFrame::render ( OutputFormat $oOutputFormat)
Return values
string

Reimplemented from Sabberworm\CSS\CSSList\CSSList.

◆ replace()

Sabberworm\CSS\CSSList\CSSList::replace ( $oOldItem,
$mNewItem )
inherited

Replaces an item from the CSS list.

Parameters
RuleSet | Import | Charset | CSSList$oOldItemMay be a RuleSet (most likely a DeclarationBlock), an Import, a Charset or another CSSList (most likely a MediaQuery)
Return values
bool

◆ setAnimationName()

Sabberworm\CSS\CSSList\KeyFrame::setAnimationName ( $animationName)
Parameters
string$animationName

◆ setComments()

Sabberworm\CSS\CSSList\CSSList::setComments ( array $aComments)
inherited
Parameters
array<array-key,Comment>$aComments
Return values
void

Implements Sabberworm\CSS\Comment\Commentable.

◆ setContents()

Sabberworm\CSS\CSSList\CSSList::setContents ( array $aContents)
inherited
Parameters
array<int,RuleSet|Import|Charset|CSSList>$aContents

◆ setVendorKeyFrame()

Sabberworm\CSS\CSSList\KeyFrame::setVendorKeyFrame ( $vendorKeyFrame)
Parameters
string$vendorKeyFrame

◆ splice()

Sabberworm\CSS\CSSList\CSSList::splice ( $iOffset,
$iLength = null,
$mReplacement = null )
inherited

Splices the list of contents.

Parameters
int$iOffset
int$iLength
array<int,RuleSet|CSSList|Import|Charset>$mReplacement
Return values
void

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