|
MIOLO26
|
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 |
| __construct | ( | ) |
The class constructor.
The base protocol, host & path are initialized to those of the current script.
| __toString | ( | ) |
dumps the entire stylesheet as a string
Generates a string of each selector and associated style in the Stylesheet. Useful for debugging.
| add_style | ( | $key, | |
| Style | $style ) |
| 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.
| Frame_Tree | $tree |
| create_style | ( | $parent = null | ) |
| get_base_path | ( | ) |
Return the base path for this stylesheet
| get_host | ( | ) |
Return the base host for this stylesheet
| get_protocol | ( | ) |
Return the base protocol for this stylesheet
| load_css | ( | & | $css | ) |
load and parse a CSS string
| string | $css |
| load_css_file | ( | $file | ) |
load and parse a CSS file
| string | $file |
| lookup | ( | $key | ) |
| set_base_path | ( | $path | ) |
Set the base path
| string | $path |
| set_host | ( | $host | ) |
Set the base host
| string | $host |
| set_protocol | ( | $proto | ) |
Set the base protocol
| string | $proto |
|
static |
accepted CSS media types
| const DEFAULT_STYLESHEET = __DEFAULT_STYLESHEET |
the location of the default built-in CSS file.