Element index for package csstidy
[ a ]
[ c ]
[ d ]
[ e ]
[ f ]
[ g ]
[ h ]
[ i ]
[ l ]
[ m ]
[ n ]
[ o ]
[ p ]
[ s ]
[ t ]
[ u ]
[ v ]
a
- $added
- in file css_parser.php, variable csstidy::$added
=true if something has been added to the current selector
- $at
- in file css_parser.php, variable csstidy::$at
Saves the current at rule (@media)
top
c
- $charset
- in file css_parser.php, variable csstidy::$charset
Saves the CSS charset (@charset)
- $comments
- in file css_parser.php, variable csstidy::$comments
Stores comments
- $comment_from
- in file css_parser.php, variable csstidy::$comment_from
Status where the comment has been started
- $css
- in file css_parser.php, variable csstidy::$css
Saves the parsed CSS
- compress_numbers
- in file functions.inc.php, function compress_numbers()
Compresses numbers (ie. 1.0 becomes 1 or 1.100 becomes 1.1 )
- csstidy
- in file css_parser.php, method csstidy::csstidy()
Loads standard template and sets default settings
- csstidy
- in file css_parser.php, class csstidy
CSS Parser class
- css_add_property
- in file css_parser.php, method csstidy::css_add_property()
Adds a property with value to the existing CSS code
- css_parser.php
- procedural page css_parser.php
- cut_color
- in file functions.inc.php, function cut_color()
Color compression function. Converts all rgb() values to #-values and uses the short-form if possible. Also replaces 4 color names by #-values.
- c_font_weight
- in file css_parser.php, method csstidy::c_font_weight()
Compresses font-weight (not very effective but anyway :-p )
- c_important
- in file css_parser.php, method csstidy::c_important()
Removes unnecessary whitespace in ! important
top
d
- data.inc.php
- procedural page data.inc.php
- dissolve_4value_shorthands
- in file functions.inc.php, function dissolve_4value_shorthands()
Dissolves properties like padding:10px 10px 10px to padding-top:10px;padding-bottom:10px;...
- dissolve_short_bg
- in file functions.inc.php, function dissolve_short_bg()
Dissolve background property
top
e
- escaped
- in file css_parser.php, method csstidy::escaped()
Checks if a character is escaped (and returns true if it is)
- explode_selectors
- in file css_parser.php, method csstidy::explode_selectors()
Explodes selectors
- explode_ws
- in file functions.inc.php, function explode_ws()
Explodes a string as explode() does, however, not if $sep is escaped or within a string.
top
top
g
- $GLOBALS['csstidy']['all_properties']
- in file data.inc.php, global variable $GLOBALS['csstidy']['all_properties']
All CSS Properties. Needed for csstidy::property_is_next()
- $GLOBALS['csstidy']['at_rules']
- in file data.inc.php, global variable $GLOBALS['csstidy']['at_rules']
Available at-rules
- $GLOBALS['csstidy']['background_prop_default']
- in file data.inc.php, global variable $GLOBALS['csstidy']['background_prop_default']
Default values for the background properties
- $GLOBALS['csstidy']['color_values']
- in file data.inc.php, global variable $GLOBALS['csstidy']['color_values']
Properties that allow <color> as value
- $GLOBALS['csstidy']['number_values']
- in file data.inc.php, global variable $GLOBALS['csstidy']['number_values']
Properties that allow <number> as value
- $GLOBALS['csstidy']['predefined_templates']
- in file data.inc.php, global variable $GLOBALS['csstidy']['predefined_templates']
An array containing all predefined templates.
- $GLOBALS['csstidy']['replace_colors']
- in file data.inc.php, global variable $GLOBALS['csstidy']['replace_colors']
A list of non-W3C color names which get replaced by their hex-codes
- $GLOBALS['csstidy']['shorthands']
- in file data.inc.php, global variable $GLOBALS['csstidy']['shorthands']
A list of all shorthand properties that are devided into four properties and/or have four subvalues
- $GLOBALS['csstidy']['tokens']
- in file data.inc.php, global variable $GLOBALS['csstidy']['tokens']
All CSS tokens used by csstidy
- $GLOBALS['csstidy']['units']
- in file data.inc.php, global variable $GLOBALS['csstidy']['units']
All CSS units (CSS 3 units included)
- $GLOBALS['csstidy']['whitespace']
- in file data.inc.php, global variable $GLOBALS['csstidy']['whitespace']
All whitespace allowed in CSS
- get_cfg
- in file css_parser.php, method csstidy::get_cfg()
Get the value of a setting.
- get_diff
- in file css_parser.php, method csstidy::get_diff()
Get difference between the old and new code in bytes and prints the code if necessary.
- get_ratio
- in file css_parser.php, method csstidy::get_ratio()
Get compression ratio and prints the code if necessary.
- gvw_important
- in file css_parser.php, method csstidy::gvw_important()
Returns a value without !important
top
h
- htmlsp
- in file css_parser.php, method csstidy::htmlsp()
Same as htmlspecialchars, only that chars are not replaced if $plain !== true. This makes print_code() cleaner.
top
top
l
- $line
- in file css_parser.php, variable csstidy::$line
Saves the line number
- $log
- in file css_parser.php, variable csstidy::$log
Array which saves the message log
- load_template
- in file css_parser.php, method csstidy::load_template()
Loads a new template
- log
- in file css_parser.php, method csstidy::log()
Add a message to the message log
top
m
- merge_4value_shorthands
- in file functions.inc.php, function merge_4value_shorthands()
Merges Shorthand properties again, the opposite of dissolve_4value_shorthands()
- merge_bg
- in file functions.inc.php, function merge_bg()
Merges all background properties
- merge_css_blocks
- in file css_parser.php, method csstidy::merge_css_blocks()
Adds CSS to an existing media/selector
- merge_selectors
- in file css_parser.php, method csstidy::merge_selectors()
Merges selectors with same properties. Example: a{color:red} b{color:red} -> a,b{color:red} Very basic and has at least one bug. Hopefully there is a replacement soon.
top
top
top
p
- $property
- in file css_parser.php, variable csstidy::$property
Saves the current property
- parse
- in file css_parser.php, method csstidy::parse()
Parses CSS in $string. The code is saved as array in $this->css
- parse_from_url
- in file css_parser.php, method csstidy::parse_from_url()
Starts parsing from URL
- print_code
- in file css_parser.php, method csstidy::print_code()
Returns the formatted CSS Code and saves it into $this->output_css
- property_is_next
- in file css_parser.php, method csstidy::property_is_next()
Checks if the next word in a string from pos is a CSS property
top
s
- $selector
- in file css_parser.php, variable csstidy::$selector
Saves the current selector
- $sel_seperate
- in file css_parser.php, variable csstidy::$sel_seperate
Saves the position of , in selectors
- $settings
- in file css_parser.php, variable csstidy::$settings
Stores the settings
- $status
- in file css_parser.php, variable csstidy::$status
Saves the parser-status.
- $str_char
- in file css_parser.php, variable csstidy::$str_char
Saves the char which opened the last string
- $str_from
- in file css_parser.php, variable csstidy::$str_from
Status where the string has been started (is or iv)
- $str_in_str
- in file css_parser.php, variable csstidy::$str_in_str
Variable needed to manage string-in-strings, for example url("foo.png")
- $sub_value
- in file css_parser.php, variable csstidy::$sub_value
Saves the current sub-value
- $sub_value_arr
- in file css_parser.php, variable csstidy::$sub_value_arr
Array which saves all subvalues for a property.
- set_cfg
- in file css_parser.php, method csstidy::set_cfg()
Set the value of a setting.
- shorthand
- in file css_parser.php, method csstidy::shorthand()
Compresses shorthand values. Example: margin:1px 1px 1px 1px -> margin:1px
- size
- in file css_parser.php, method csstidy::size()
Get the size of either input or output CSS in KB
top
top
u
- unicode
- in file css_parser.php, method csstidy::unicode()
Parse unicode notations and find a replacement character
top
v
- $value
- in file css_parser.php, variable csstidy::$value
Saves the current value
- $version
- in file css_parser.php, variable csstidy::$version
Contains the version of csstidy
top
|
|