Element index for package csspp
[ a ]
[ b ]
[ c ]
[ d ]
[ e ]
[ f ]
[ g ]
[ h ]
[ i ]
[ l ]
[ m ]
[ o ]
[ p ]
[ r ]
[ s ]
[ t ]
[ u ]
[ v ]
[ w ]
a
- $all_properties
- in file data.inc.php, global variable $all_properties
All CSS Properties. Needed for csspp::property_is_next()
top
b
- $background_prop_default
- in file data.inc.php, global variable $background_prop_default
Default values for the background properties
top
c
- $charset
- in file css_parser2.php, variable csspp::$charset
Saves the charset (@charset)
- $comment_from
- in file css_parser2.php, variable csspp::$comment_from
Status where the comment has been started
- $css
- in file css_parser2.php, variable csspp::$css
Saves the parsed CSS
- $cur_at
- in file css_parser2.php, variable csspp::$cur_at
Saves the current at rule (@media)
- $cur_property
- in file css_parser2.php, variable csspp::$cur_property
Saves the current property
- $cur_selector
- in file css_parser2.php, variable csspp::$cur_selector
Saves the current selector
- $cur_sub_value
- in file css_parser2.php, variable csspp::$cur_sub_value
Saves the current sub-value
- $cur_sub_value_arr
- in file css_parser2.php, variable csspp::$cur_sub_value_arr
Array which saves all subvalues for a property.
- $cur_value
- in file css_parser2.php, variable csspp::$cur_value
Saves the current value
- compress_numbers
- in file functions.inc.php, function compress_numbers()
Compresses numbers (ie. 1.0 becomes 1 or 1.100 becomes 1.1 )
- csspp
- in file css_parser2.php, method csspp::csspp()
Loads standard template and sets default settings
- csspp
- in file css_parser2.php, class csspp
CSS Parser class ( CSS PreProcessor or CSS PostProcessor, depends on the point of view )
- css_add_property
- in file css_parser2.php, method csspp::css_add_property()
Adds a property with value to an existing CSS block
- css_parser2.php
- procedural page css_parser2.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_important
- in file css_parser2.php, method csspp::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, CSS3 will be compliant
top
e
- escaped
- in file css_parser2.php, method csspp::escaped()
Checks if a character is escaped (and returns TRUE if it is)
- 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
- get_cfg
- in file css_parser2.php, method csspp::get_cfg()
Get the value of a setting.
- get_diff
- in file css_parser2.php, method csspp::get_diff()
Get difference between the old and new code in bytes and prints the code if necessary.
- get_ratio
- in file css_parser2.php, method csspp::get_ratio()
Get compression ratio and prints the code if necessary.
- gvw_important
- in file css_parser2.php, method csspp::gvw_important()
Returns a value without !important
top
h
- $hex
- in file css_parser2.php, variable csspp::$hex
A list of certain chars, needed for removing unnecessary backslashes
- has_subkey
- in file css_parser2.php, method csspp::has_subkey()
Checks if $array has the key $find (array[x][$find]). If gv=1, the value of the key is returned.
top
i
- $import
- in file css_parser2.php, variable csspp::$import
Saves all @import URLs
- $input_css
- in file css_parser2.php, variable csspp::$input_css
Saves the input CSS string
- in_array_prop
- in file css_parser2.php, method csspp::in_array_prop()
This function checks if the properties $needle also exist in other selectors $haystack and returs them as $keys
- is_important
- in file css_parser2.php, method csspp::is_important()
Checks if $value is !important.
top
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_parser2.php, method csspp::merge_css_blocks()
Merges two CSS blocks
- merge_selectors
- in file css_parser2.php, method csspp::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
o
- $output_css
- in file css_parser2.php, variable csspp::$output_css
Saves the formatted CSS string
top
p
- parse
- in file css_parser2.php, method csspp::parse()
Parses CSS in $string. The code is saved as array in $this->css
- parseurl
- in file css_parser2.php, method csspp::parseurl()
Extract URL from @import value (if $opt == TRUE) and/or add missing http:// to URL
- parse_from_url
- in file css_parser2.php, method csspp::parse_from_url()
Starts parsing from URL
- print_code
- in file css_parser2.php, method csspp::print_code()
Returns the formatted CSS Code and saves it into $this->output_css
- property_is_next
- in file css_parser2.php, method csspp::property_is_next()
Checks if the next word in a string from pos is a CSS property
top
r
- rm_subkey
- in file css_parser2.php, method csspp::rm_subkey()
Removes all keys $find in $array (array[x][$find]).
top
s
- $settings
- in file css_parser2.php, variable csspp::$settings
Stores the settings
- $shorthands
- in file data.inc.php, global variable $shorthands
A list of all shorthand properties that are devided into four properties
- $status
- in file css_parser2.php, variable csspp::$status
Saves the parser-status:
- $str_char
- in file css_parser2.php, variable csspp::$str_char
Saves the char which opened the last string
- $str_from
- in file css_parser2.php, variable csspp::$str_from
Status where the string has been started (is or iv)
- $str_in_str
- in file css_parser2.php, variable csspp::$str_in_str
Variable needed to manage string-in-strings, for example url("foo.png")
- set_cfg
- in file css_parser2.php, method csspp::set_cfg()
Set the value of a setting.
- shorthand
- in file css_parser2.php, method csspp::shorthand()
Compresses shorthand values. Example: margin:1px 1px 1px 1px -> margin:1px
- size
- in file css_parser2.php, method csspp::size()
Get the size of either input or output CSS in KB
top
t
- $template
- in file css_parser2.php, variable csspp::$template
Saves the templates
top
u
- $units
- in file data.inc.php, global variable $units
All CSS units (CSS 3 units included)
- usort_properties
- in file css_parser2.php, method csspp::usort_properties()
Sort function for sorting the properties
top
v
- $version
- in file css_parser2.php, variable csspp::$version
Contains the version of CSSPP
top
w
- $whitespace
- in file data.inc.php, global variable $whitespace
All whitespace allowed in CSS
top
|
|