\Pop\CssAbstractCss

Abstract CSS class

Summary

Methods
Properties
Constants
addSelector()
addSelectors()
hasSelector()
getSelector()
removeSelector()
addComment()
getComments()
minify()
isMinified()
getIterator()
count()
offsetExists()
offsetGet()
offsetSet()
offsetUnset()
No public properties found
No constants found
No protected methods found
$selectors
$elements
$ids
$classes
$comments
$minify
N/A
No private methods found
No private properties found
N/A

Properties

$selectors

$selectors : array

Selectors

Type

array

$elements

$elements : array

Elements

Type

array

$ids

$ids : array

IDs

Type

array

$classes

$classes : array

Classes

Type

array

$comments

$comments : array

Comments

Type

array

$minify

$minify : boolean

Minify flag

Type

boolean

Methods

addSelector()

addSelector(\Pop\Css\Selector  $selector) : self

Add CSS selector

Parameters

\Pop\Css\Selector $selector

Returns

self

addSelectors()

addSelectors(array  $selectors) : self

Add CSS selectors

Parameters

array $selectors

Returns

self

hasSelector()

hasSelector(string  $selector) : boolean

Check if the object has CSS selector

Parameters

string $selector

Returns

boolean

getSelector()

getSelector(string  $selector) : \Pop\Css\Selector

Get CSS selector

Parameters

string $selector

Returns

\Pop\Css\Selector

removeSelector()

removeSelector(string  $selector) : self

Get CSS selector

Parameters

string $selector

Returns

self

addComment()

addComment(\Pop\Css\Comment  $comment) : self

Add CSS comment

Parameters

\Pop\Css\Comment $comment

Returns

self

getComments()

getComments() : array

Get CSS comments

Returns

array

minify()

minify(boolean  $minify = true) : self

Set minify flag

Parameters

boolean $minify

Returns

self

isMinified()

isMinified() : boolean

Check if minify flag is set

Returns

boolean

getIterator()

getIterator() : \ArrayIterator

Method to iterate over the properties

Returns

\ArrayIterator

count()

count() : integer

Method to get the count of properties

Returns

integer

offsetExists()

offsetExists(mixed  $offset) : boolean

ArrayAccess offsetExists

Parameters

mixed $offset

Returns

boolean

offsetGet()

offsetGet(mixed  $offset) : mixed

ArrayAccess offsetGet

Parameters

mixed $offset

Returns

mixed

offsetSet()

offsetSet(mixed  $offset, mixed  $value) : void

ArrayAccess offsetSet

Parameters

mixed $offset
mixed $value

Throws

\Pop\Css\Exception

offsetUnset()

offsetUnset(mixed  $offset) : void

ArrayAccess offsetUnset

Parameters

mixed $offset