MIOLO26
Carregando...
Procurando...
Nenhuma entrada encontrada
Referência à classe Stylesheet

Membros públicos

 __construct ()
 
 set_protocol ($proto)
 
 set_host ($host)
 
 set_base_path ($path)
 
 get_protocol ()
 
 get_host ()
 
 get_base_path ()
 
 add_style ($key, Style $style)
 
 lookup ($key)
 
 create_style ($parent=null)
 
 load_css (&$css)
 
 load_css_file ($file)
 
 apply_styles (Frame_Tree $tree)
 
 __toString ()
 

Campos de Dados

const DEFAULT_STYLESHEET = __DEFAULT_STYLESHEET
 

Atributos Públicos Estáticos

static $ACCEPTED_MEDIA_TYPES
 

Documentação dos Construtores & Destrutor

◆ __construct()

__construct ( )

The class constructor.

The base protocol, host & path are initialized to those of the current script.

Documentação das funções

◆ __toString()

__toString ( )

dumps the entire stylesheet as a string

Generates a string of each selector and associated style in the Stylesheet. Useful for debugging.

Retorna
string

◆ add_style()

add_style ( $key,
Style $style )

add a new Style object to the stylesheet

add_style() adds a new Style object to the current stylesheet, or merges a new Style with an existing one.

Parâmetros
string$keythe Style's selector
Style$stylethe Style to be added

◆ apply_styles()

apply_styles ( Frame_Tree $tree)

applies all current styles to a particular document tree

apply_styles() applies all currently loaded styles to the provided Frame_Tree. Aside from parsing CSS, this is the main purpose of this class.

Parâmetros
Frame_Tree$tree

◆ create_style()

create_style ( $parent = null)

create a new Style object associated with this stylesheet

Parâmetros
Style$parentThe style of this style's parent in the DOM tree
Retorna
Style

◆ get_base_path()

get_base_path ( )

Return the base path for this stylesheet

Retorna
string

◆ get_host()

get_host ( )

Return the base host for this stylesheet

Retorna
string

◆ get_protocol()

get_protocol ( )

Return the base protocol for this stylesheet

Retorna
string

◆ load_css()

load_css ( & $css)

load and parse a CSS string

Parâmetros
string$css

◆ load_css_file()

load_css_file ( $file)

load and parse a CSS file

Parâmetros
string$file

◆ lookup()

lookup ( $key)

lookup a specifc Style object

lookup() returns the Style specified by $key, or null if the Style is not found.

Parâmetros
string$keythe selector of the requested Style
Retorna
Style

◆ set_base_path()

set_base_path ( $path)

Set the base path

Parâmetros
string$path

◆ set_host()

set_host ( $host)

Set the base host

Parâmetros
string$host

◆ set_protocol()

set_protocol ( $proto)

Set the base protocol

Parâmetros
string$proto

Documentação dos campos e atributos

◆ $ACCEPTED_MEDIA_TYPES

$ACCEPTED_MEDIA_TYPES
static
Valor inicial:
= array("all", "static", "visual",
"bitmap", "paged", "print")

accepted CSS media types

◆ DEFAULT_STYLESHEET

const DEFAULT_STYLESHEET = __DEFAULT_STYLESHEET

the location of the default built-in CSS file.


A documentação para esta classe foi gerada a partir do seguinte ficheiro: