Dodo
DOm DOcument implementation
Loading...
Searching...
No Matches
Wikimedia\Dodo\DOMTokenList Class Reference
+ Inheritance diagram for Wikimedia\Dodo\DOMTokenList:

Public Member Functions

 __construct (Element $element, string $localName)
 
 _getList (?string $newValue=null)
 Fetch the attribute value and parse it into an ordered set.
 
 add (string ... $tokens)
 
bool contains (string $token)
 
 remove (string ... $tokens)
 
bool replace (string $token, string $newToken)
 
string getValue ()
 
 setValue (string $val)
 
int getLength ()
 Count the names.
 
string null item (int $index)
 
bool toggle (string $token, ?bool $force=null)
 
- Public Member Functions inherited from Wikimedia::IDLeDOM::DOMTokenList
bool supports (string $token)
 
Iterator< string > getIterator ()
 

Constructor & Destructor Documentation

◆ __construct()

Wikimedia\Dodo\DOMTokenList::__construct ( Element $element,
string $localName )
Parameters
Element$elementThe element associated with this token list
string$localNameThe name of the attribute associated with this token list.

Member Function Documentation

◆ _getList()

Wikimedia\Dodo\DOMTokenList::_getList ( ?string $newValue = null)

Fetch the attribute value and parse it into an ordered set.

Parameters
?string$newValue

◆ add()

Wikimedia\Dodo\DOMTokenList::add ( string ... $tokens)
Parameters
string...$tokens

Implements Wikimedia::IDLeDOM::DOMTokenList.

◆ contains()

bool Wikimedia\Dodo\DOMTokenList::contains ( string $token)
Parameters
string$token
Returns
bool

Implements Wikimedia::IDLeDOM::DOMTokenList.

◆ getLength()

int Wikimedia\Dodo\DOMTokenList::getLength ( )

Count the names.

Returns
int

Implements Wikimedia::IDLeDOM::DOMTokenList.

◆ getValue()

string Wikimedia\Dodo\DOMTokenList::getValue ( )
Returns
string

Implements Wikimedia::IDLeDOM::DOMTokenList.

◆ item()

string null Wikimedia\Dodo\DOMTokenList::item ( int $index)
Parameters
int$indexIndex
Returns
string|null

Implements Wikimedia::IDLeDOM::DOMTokenList.

◆ remove()

Wikimedia\Dodo\DOMTokenList::remove ( string ... $tokens)
Parameters
string...$tokens

Implements Wikimedia::IDLeDOM::DOMTokenList.

◆ replace()

bool Wikimedia\Dodo\DOMTokenList::replace ( string $token,
string $newToken )
Parameters
string$token
string$newToken
Returns
bool

Implements Wikimedia::IDLeDOM::DOMTokenList.

◆ setValue()

Wikimedia\Dodo\DOMTokenList::setValue ( string $val)
Parameters
string$val

Implements Wikimedia::IDLeDOM::DOMTokenList.

◆ toggle()

bool Wikimedia\Dodo\DOMTokenList::toggle ( string $token,
?bool $force = null )
Parameters
string$tokenName
bool | null$force
Returns
bool

Implements Wikimedia::IDLeDOM::DOMTokenList.


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