PHP Класс FluentDOM\Query\Css

It acts like the FluentDOMStyle::css() method. If you read css properties it uses the first selected node. Write actions are applied to all matches element nodes.
Наследование: implements ArrayAccess, implements Countable, implements IteratorAggregate
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( Query $fd ) Store the FluentDOM instance for later use and decode the style string into an array
count ( ) : integer Get the property count of the first selected node
getIterator ( ) : Iterator Get an iterator for the properties
offsetExists ( string $name ) : boolean Allow to use isset() and array syntax to check if a css property is set on the first matched node.
offsetGet ( string $name ) : boolean | mixed Allow to use array syntax to read a css property value from first matched node.
offsetSet ( string $name, string $value ) Allow to use array syntax to change a css property value on all matched nodes.
offsetUnset ( string $name ) Allow to use unset and array syntax to remove a css property value on all matched nodes.

Приватные методы

Метод Описание
getStyleProperties ( ) : Properties | null Get the style properties from the first node in the Query object

Описание методов

__construct() публичный Метод

Store the FluentDOM instance for later use and decode the style string into an array
public __construct ( Query $fd )
$fd FluentDOM\Query

count() публичный Метод

Get the property count of the first selected node
См. также: Countable::count()
public count ( ) : integer
Результат integer

getIterator() публичный Метод

Get an iterator for the properties
См. также: IteratorAggregate::getIterator()
public getIterator ( ) : Iterator
Результат Iterator

offsetExists() публичный Метод

Allow to use isset() and array syntax to check if a css property is set on the first matched node.
См. также: ArrayAccess::offsetExists()
public offsetExists ( string $name ) : boolean
$name string
Результат boolean

offsetGet() публичный Метод

Allow to use array syntax to read a css property value from first matched node.
См. также: ArrayAccess::offsetGet()
public offsetGet ( string $name ) : boolean | mixed
$name string
Результат boolean | mixed $value

offsetSet() публичный Метод

Allow to use array syntax to change a css property value on all matched nodes.
См. также: ArrayAccess::offsetSet()
public offsetSet ( string $name, string $value )
$name string
$value string

offsetUnset() публичный Метод

Allow to use unset and array syntax to remove a css property value on all matched nodes.
См. также: ArrayAccess::offsetUnset()
public offsetUnset ( string $name )
$name string