Packages:
lithron
csstidy


Classes:

Class csstidy_print


CSS Printing class

This class prints CSS data generated by csstidy.

Author: Florian Schmitz (floele at gmail dot com) 2005-2006

Method Summary
string
Returns the formatted CSS code
string
Get difference between the old and new code in bytes and prints the code if necessary.
float
Get compression ratio
string
plain ()
Returns the CSS code as plain text
integer
size ( string $loc)
Get the size of either input or output CSS in KB

Method Details

formatted

public string formatted ()

Returns the formatted CSS code

Output
Exception

get_diff

public string get_diff ()

Get difference between the old and new code in bytes and prints the code if necessary.

Output
Exception

get_ratio

public float get_ratio ()

Get compression ratio

Output
Exception

plain

public string plain ()

Returns the CSS code as plain text

Output
Exception

size

public integer size (string $loc )

Get the size of either input or output CSS in KB

Input
string$locdefault is "output"
Output
Exception