Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
Sabberworm\CSS\Value\CSSFunction Class Reference
Inheritance diagram for Sabberworm\CSS\Value\CSSFunction:
Sabberworm\CSS\Value\ValueList Sabberworm\CSS\Value\Value Sabberworm\CSS\Renderable Sabberworm\CSS\Value\CalcFunction Sabberworm\CSS\Value\Color

Public Member Functions

 __construct ($sName, $aArguments, $sSeparator=',', $iLineNo=0)
 
 __toString ()
 
 addListComponent ($mComponent)
 
 getArguments ()
 
 getLineNo ()
 
 getListComponents ()
 
 getListSeparator ()
 
 getName ()
 
 render (OutputFormat $oOutputFormat)
 
 setListComponents (array $aComponents)
 
 setListSeparator ($sSeparator)
 
 setName ($sName)
 

Static Public Member Functions

static parseIdentifierOrFunction (ParserState $oParserState, $bIgnoreCase=false)
 
static parsePrimitiveValue (ParserState $oParserState)
 
static parseValue (ParserState $oParserState, array $aListDelimiters=[])
 

Public Attributes

$this sSeparator = $sSeparator
 

Protected Attributes

int $iLineNo
 
string $sName
 
array< int, $aComponents;protected string $sSeparator;public function __construct( $aComponents=[], $sSeparator=',', $iLineNo=0) { parent::__construct( $iLineNo);if(!is_array( $aComponents)) { $aComponents=[ $aComponents];} $this-> aComponents = $aComponents
 

Constructor & Destructor Documentation

◆ __construct()

Sabberworm\CSS\Value\CSSFunction::__construct ( $sName,
$aArguments,
$sSeparator = ',',
$iLineNo = 0 )
Parameters
string$sName
RuleValueList|array<int,RuleValueList|CSSFunction|CSSString|LineName|Size|URL|string>$aArguments
string$sSeparator
int$iLineNo

Member Function Documentation

◆ __toString()

Sabberworm\CSS\Value\CSSFunction::__toString ( )
Return values
string

Reimplemented from Sabberworm\CSS\Value\ValueList.

Reimplemented in Sabberworm\CSS\Value\Color.

◆ addListComponent()

Sabberworm\CSS\Value\ValueList::addListComponent ( $mComponent)
inherited
Parameters
RuleValueList | CSSFunction | CSSString | LineName | Size | URL | string$mComponent
Return values
void

◆ getArguments()

Sabberworm\CSS\Value\CSSFunction::getArguments ( )
Return values
array<int,RuleValueList|CSSFunction|CSSString|LineName|Size|URL|string>

◆ getLineNo()

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

Implements Sabberworm\CSS\Renderable.

◆ getListComponents()

Sabberworm\CSS\Value\ValueList::getListComponents ( )
inherited
Return values
array<int,RuleValueList|CSSFunction|CSSString|LineName|Size|URL|string>

◆ getListSeparator()

Sabberworm\CSS\Value\ValueList::getListSeparator ( )
inherited
Return values
string

◆ getName()

Sabberworm\CSS\Value\CSSFunction::getName ( )
Return values
string

◆ parseIdentifierOrFunction()

static Sabberworm\CSS\Value\Value::parseIdentifierOrFunction ( ParserState $oParserState,
$bIgnoreCase = false )
staticinherited
Parameters
bool$bIgnoreCase
Return values
CSSFunction|string
Exceptions
UnexpectedEOFException
UnexpectedTokenException

◆ parsePrimitiveValue()

static Sabberworm\CSS\Value\Value::parsePrimitiveValue ( ParserState $oParserState)
staticinherited
Return values
CSSFunction|CSSString|LineName|Size|URL|string
Exceptions
UnexpectedEOFException
UnexpectedTokenException
SourceException

◆ parseValue()

static Sabberworm\CSS\Value\Value::parseValue ( ParserState $oParserState,
array $aListDelimiters = [] )
staticinherited
Parameters
array<array-key,string>$aListDelimiters
Return values
RuleValueList|CSSFunction|CSSString|LineName|Size|URL|string
Exceptions
UnexpectedTokenException
UnexpectedEOFException

◆ render()

Sabberworm\CSS\Value\CSSFunction::render ( OutputFormat $oOutputFormat)
Return values
string

Reimplemented from Sabberworm\CSS\Value\ValueList.

Reimplemented in Sabberworm\CSS\Value\Color.

◆ setListComponents()

Sabberworm\CSS\Value\ValueList::setListComponents ( array $aComponents)
inherited
Parameters
array<int,RuleValueList|CSSFunction|CSSString|LineName|Size|URL|string>$aComponents
Return values
void

◆ setListSeparator()

Sabberworm\CSS\Value\ValueList::setListSeparator ( $sSeparator)
inherited
Parameters
string$sSeparator
Return values
void

◆ setName()

Sabberworm\CSS\Value\CSSFunction::setName ( $sName)
Parameters
string$sName
Return values
void

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