Class: csspp
Source Location: /css_parser2.php
CSS Parser class ( CSS PreProcessor or CSS PostProcessor, depends on the point of view )
Author(s):
- Florian Schmitz (floele at gmail dot com) 2005
Version:
|
|
|
Class Details
Class Variables
$charset = ''
[line 57]
Saves the charset (@charset)
Tags:
$comment_from = ''
[line 200]
Status where the comment has been started
Tags:
$css = array()
[line 50]
Saves the parsed CSS
Tags:
$cur_at = ''
[line 131]
Saves the current at rule (@media)
Tags:
$cur_property = ''
[line 145]
Saves the current property
Tags:
$cur_selector = ''
[line 138]
Saves the current selector
Tags:
$cur_sub_value = ''
[line 164]
Saves the current sub-value Example for a subvalue: background:url(foo.png) red no-repeat; "url(foo.png)", "red", and "no-repeat" are subvalues, seperated by whitespace
Tags:
$cur_sub_value_arr = array()
[line 172]
Array which saves all subvalues for a property.
Tags:
$cur_value = ''
[line 152]
Saves the current value
Tags:
$hex = array('a','b','c','d','e','f','\\',':','=')
[line 93]
A list of certain chars, needed for removing unnecessary backslashes
Tags:
$import = array()
[line 64]
Saves all @import URLs
Tags:
$input_css = ''
[line 71]
Saves the input CSS string
Tags:
$output_css = ''
[line 78]
Saves the formatted CSS string
Tags:
$settings = array()
[line 107]
Stores the settings
Tags:
$status = 'wfs'
[line 123]
Saves the parser-status: wfs = wait for selector is = in selector wfp = wait for property ip = in property iv = in value instr = in string (-> ",' ( => ignore } and ; etc.) ) ic = in comment (ignore everything) at = in @-block
Tags:
$str_char = ''
[line 179]
Saves the char which opened the last string
Tags:
$str_from = ''
[line 186]
Status where the string has been started (is or iv)
Tags:
$str_in_str = FALSE
[line 193]
Variable needed to manage string-in-strings, for example url("foo.png")
Tags:
$template = array()
[line 86]
Saves the templates
Tags:
$version = '0.98dev'
[line 100]
Contains the version of CSSPP
Tags:
Class Methods
|
|