CSSMagic  1.0
Criação de CSS dinâmico sem uso de pré-processadores, apenas com PHP 7
Public Member Functions | Protected Attributes
Theme Class Reference

Public Member Functions

 __construct (string $theme_name)
 
 getThemeName ()
 
 addSelector (Selector $selector)
 
 getAllSelectors ()
 
 getSelector (string $selector_id)
 
 hasSelector (string $selector_id)
 
 removeSelector (string $selector_id)
 
 getThemeString ()
 

Protected Attributes

 $theme_name = ''
 
 $selectors = []
 

Detailed Description

Representa um tema CSS

Definition at line 8 of file Theme.php.

Constructor & Destructor Documentation

__construct ( string  $theme_name)

Construtor da classe.

Parameters
string$theme_nameO nome do tema.
Returns
void

Definition at line 25 of file Theme.php.

Member Function Documentation

addSelector ( Selector  $selector)

Adiciona um seletor no tema.

Parameters
{

Definition at line 42 of file Theme.php.

getAllSelectors ( )

Retorna um array com todos os seletores.

Returns
array

Definition at line 50 of file Theme.php.

getSelector ( string  $selector_id)

Retorna um determinado seletor identificado por $selector_id.

Parameters
string$selector_idA identifica?Æo do seletor.
Returns
CSSMagic

Definition at line 59 of file Theme.php.

getThemeName ( )

Retorna o nome do tema.

Returns
string

Definition at line 33 of file Theme.php.

getThemeString ( )

Gera o c¢digo CSS do tema.

Returns
string

Definition at line 85 of file Theme.php.

hasSelector ( string  $selector_id)

Verifica se determinado seletor existe.

Parameters
string$selector_idA identifica?Æo do seletor.
Returns
boolean

Definition at line 68 of file Theme.php.

removeSelector ( string  $selector_id)

Remove determinado seletor.

Parameters
string$seletor_idA identifica?Æo do seletor para remover.
Returns
void

Definition at line 77 of file Theme.php.

Field Documentation

$selectors = []
protected

Os seletores do tema

Definition at line 18 of file Theme.php.

$theme_name = ''
protected

Um nome para o tema

Definition at line 13 of file Theme.php.


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