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
파일 보기 프로젝트 열기: fluentdom/fluentdom

공개 메소드들

메소드 설명
__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