Documentation

AbstractCss
in package
implements ArrayAccess, Countable, IteratorAggregate Uses CommentTrait

AbstractYes

Abstract CSS class

Tags
category

Pop

author

Nick Sagona, III dev@nolainteractive.com

copyright

Copyright (c) 2009-2024 NOLA Interactive, LLC. (http://www.nolainteractive.com)

license

http://www.popphp.org/license New BSD License

version
2.0.0

Table of Contents

Interfaces

ArrayAccess
Countable
IteratorAggregate

Properties

$classes  : array<string|int, mixed>
Classes
$comments  : array<string|int, mixed>
Comments
$elements  : array<string|int, mixed>
Elements
$ids  : array<string|int, mixed>
IDs
$minify  : bool
Minify flag
$selectors  : array<string|int, mixed>
Selectors

Methods

addComment()  : static
Add CSS comment
addSelector()  : AbstractCss
Add CSS selector
addSelectors()  : AbstractCss
Add CSS selectors
count()  : int
Method to get the count of properties
getComments()  : array<string|int, mixed>
Get CSS comments
getIterator()  : ArrayIterator
Method to iterate over the properties
getSelector()  : Selector|null
Get CSS selector
hasComments()  : bool
Has CSS comments
hasSelector()  : bool
Check if the object has CSS selector
isMinified()  : bool
Check if minify flag is set
minify()  : AbstractCss
Set minify flag
offsetExists()  : bool
ArrayAccess offsetExists
offsetGet()  : mixed
ArrayAccess offsetGet
offsetSet()  : void
ArrayAccess offsetSet
offsetUnset()  : void
ArrayAccess offsetUnset
removeSelector()  : AbstractCss
Get CSS selector

Properties

$classes

Classes

protected array<string|int, mixed> $classes = []

$comments

Comments

protected array<string|int, mixed> $comments = []

$elements

Elements

protected array<string|int, mixed> $elements = []

$ids

IDs

protected array<string|int, mixed> $ids = []

$selectors

Selectors

protected array<string|int, mixed> $selectors = []

Methods

addComment()

Add CSS comment

public addComment(Comment|string $comment[, int $wrap = 80 ][, bool $trailingNewLine = false ]) : static
Parameters
$comment : Comment|string
$wrap : int = 80
$trailingNewLine : bool = false
Return values
static

addSelectors()

Add CSS selectors

public addSelectors(array<string|int, mixed> $selectors) : AbstractCss
Parameters
$selectors : array<string|int, mixed>
Return values
AbstractCss

count()

Method to get the count of properties

public count() : int
Return values
int

getComments()

Get CSS comments

public getComments() : array<string|int, mixed>
Return values
array<string|int, mixed>

getIterator()

Method to iterate over the properties

public getIterator() : ArrayIterator
Return values
ArrayIterator

getSelector()

Get CSS selector

public getSelector(string $selector) : Selector|null
Parameters
$selector : string
Return values
Selector|null

hasComments()

Has CSS comments

public hasComments() : bool
Return values
bool

hasSelector()

Check if the object has CSS selector

public hasSelector(string $selector) : bool
Parameters
$selector : string
Return values
bool

isMinified()

Check if minify flag is set

public isMinified() : bool
Return values
bool

offsetExists()

ArrayAccess offsetExists

public offsetExists(mixed $offset) : bool
Parameters
$offset : mixed
Return values
bool

offsetGet()

ArrayAccess offsetGet

public offsetGet(mixed $offset) : mixed
Parameters
$offset : mixed

offsetSet()

ArrayAccess offsetSet

public offsetSet(mixed $offset, mixed $value) : void
Parameters
$offset : mixed
$value : mixed
Tags
throws
Exception

offsetUnset()

ArrayAccess offsetUnset

public offsetUnset(mixed $offset) : void
Parameters
$offset : mixed

        
On this page

Search results