Class: csstidy
Source Location: /css_parser.php
CSS Parser class
Author(s):
- Florian Schmitz (floele at gmail dot com) 2005
Version:
|
|
|
Class Details
Class Variables
$added = false
[line 245]
=true if something has been added to the current selector
Tags:
$at = ''
[line 162]
Saves the current at rule (@media)
Tags:
$charset = ''
[line 74]
Saves the CSS charset (@charset)
Tags:
$comments = array()
[line 131]
Stores comments
Tags:
$comment_from = ''
[line 252]
Status where the comment has been started
Tags:
$css = array()
[line 67]
Saves the parsed CSS
Tags:
$import = array()
[line 81]
Saves all @import URLs
Tags:
$input_css = ''
[line 95]
Saves the input CSS string
Tags:
$invalid_at = false
[line 238]
=true if in invalid at-rule
Tags:
$line = 1
[line 266]
Saves the line number
Tags:
$log = array()
[line 259]
Array which saves the message log
Tags:
$namespace = ''
[line 88]
Saves the namespace
Tags:
$output_css = ''
[line 102]
Saves the formatted CSS string
Tags:
$output_css_plain = ''
[line 109]
Saves the formatted CSS string (plain text)
Tags:
$property = ''
[line 176]
Saves the current property
Tags:
$selector = ''
[line 169]
Saves the current selector
Tags:
$sel_seperate = array()
[line 183]
Saves the position of , in selectors
Tags:
$settings = array()
[line 138]
Stores the settings
Tags:
$status = 'is'
[line 154]
Saves the parser-status. Possible values: - is = in selector
- ip = in property
- iv = in value
- instr = in string (started at " or ' or ( )
- ic = in comment (ignore everything)
- at = in @-block
Tags:
$str_char = ''
[line 217]
Saves the char which opened the last string
Tags:
$str_from = ''
[line 224]
Status where the string has been started (is or iv)
Tags:
$str_in_str = false
[line 231]
Variable needed to manage string-in-strings, for example url("foo.png")
Tags:
$sub_value = ''
[line 202]
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:
$sub_value_arr = array()
[line 210]
Array which saves all subvalues for a property.
Tags:
$template = array()
[line 117]
Saves the templates
Tags:
$value = ''
[line 190]
Saves the current value
Tags:
$version = '1.1'
[line 124]
Contains the version of csstidy
Tags:
Class Methods
|
|