<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<head>
<title>phundament manual: Docs For Class csstidy_print</title>
<meta http-equiv="Expires" content="Fri, Jan 01 1900 00:00:00 GMT"/>
<meta http-equiv="Pragma" content="no-cache"/>
<meta http-equiv="Cache-Control" content="no-cache"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="content-language" content="en"/>
<meta name="Author" content="Tobias Munk" />
<meta name="Subject" content="Web programming, PHP5 framework" />
<meta name="Language" content="en" />
<link rel="Shortcut Icon" href="/favicon.ico" />
<link rel="stylesheet" type="text/css" href="/media/style.css" />
<link rel="stylesheet" type="text/css" href="/media/manual.css" />
</head>
<body>
<div style="text-align:center" align="center" width="100%"><img src="/media/logo.png" style="margin: 15px 0 30px"></div>
<div id="page">
<div id="main">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td width="250" id="infobar">
<b>Packages:</b><br />
<a href="../li_lithron.html">lithron</a><br />
<a href="../li_csstidy.html">csstidy</a><br />
<br /><br />
<b>Classes:</b><br />
<div class="package">
<a href="../csstidy/csstidy.html">csstidy</a><br />
<a href="../csstidy/csstidy_optimise.html">csstidy_optimise</a><br />
<a href="../csstidy/csstidy_print.html">csstidy_print</a><br />
</div>
</td>
<td>
<table cellpadding="10" cellspacing="0" width="100%" border="0">
<!-- <tr><td valign="top" align="center">
<form type="get" action="/docs/manual/search.php">
Keyword <input type="text" name="keyword" size="50" />
<input type="submit" value="Search" />
</form>
</td></tr>-->
<tr><td valign="top"><!-- content begin -->
<h1>Class csstidy_print</h1>
<div class="inheritence-tree">
<pre></pre>
</div>
<div class="class-description">
<p>CSS Printing class</p>
<p>This class prints CSS data generated by csstidy.</p></div>
<div class="tag-list">
<strong>Author:</strong>
Florian Schmitz (floele at gmail dot com) 2005-2006<br />
</div>
<hr size="1" noshade="noshade"/>
<a name="method-summary"></a>
<table class="method-summary" cellspacing="1">
<tr>
<th colspan="2">Method Summary</th>
</tr>
<tr>
<td class="type" nowrap="nowrap" width="1%">
string
</td>
<td>
<div class="declaration">
<a href="../csstidy/csstidy_print.html#methodformatted">formatted</a>
()
</div>
<div class="description">
Returns the formatted CSS code
</div>
</td>
</tr>
<tr>
<td class="type" nowrap="nowrap" width="1%">
string
</td>
<td>
<div class="declaration">
<a href="../csstidy/csstidy_print.html#methodget_diff">get_diff</a>
()
</div>
<div class="description">
Get difference between the old and new code in bytes and prints the code if necessary.
</div>
</td>
</tr>
<tr>
<td class="type" nowrap="nowrap" width="1%">
float
</td>
<td>
<div class="declaration">
<a href="../csstidy/csstidy_print.html#methodget_ratio">get_ratio</a>
()
</div>
<div class="description">
Get compression ratio
</div>
</td>
</tr>
<tr>
<td class="type" nowrap="nowrap" width="1%">
string
</td>
<td>
<div class="declaration">
<a href="../csstidy/csstidy_print.html#methodplain">plain</a>
()
</div>
<div class="description">
Returns the CSS code as plain text
</div>
</td>
</tr>
<tr>
<td class="type" nowrap="nowrap" width="1%">
integer
</td>
<td>
<div class="declaration">
<a href="../csstidy/csstidy_print.html#methodsize">size</a>
( string $loc)
</div>
<div class="description">
Get the size of either input or output CSS in KB
</div>
</td>
</tr>
</table>
<hr size="1" noshade="noshade"/>
<a name="method-details"></a>
<table class="method-details" cellspacing="1">
<tr>
<th>Method Details</th>
</tr>
<tr>
<td class="method-data">
<a name="methodformatted"></a>
<h2>formatted</h2>
<table class="method-detail" cellspacing="0">
<tr>
<td nowrap="nowrap">public string <strong>formatted</strong></td>
<td width="100%">()</td>
</tr>
</table>
<p>Returns the formatted CSS code</p>
<div class="tag-list"><table class="method-summary" cellspacing="1">
<tr><th colspan="3" class="small">Output</th></tr>
<tr><th colspan="3" class="small">Exception</th></tr>
</table></div>
<p/>
</td>
</tr>
<tr>
<td class="method-data">
<a name="methodget_diff"></a>
<h2>get_diff</h2>
<table class="method-detail" cellspacing="0">
<tr>
<td nowrap="nowrap">public string <strong>get_diff</strong></td>
<td width="100%">()</td>
</tr>
</table>
<p>Get difference between the old and new code in bytes and prints the code if necessary.</p>
<div class="tag-list"><table class="method-summary" cellspacing="1">
<tr><th colspan="3" class="small">Output</th></tr>
<tr><th colspan="3" class="small">Exception</th></tr>
</table></div>
<p/>
</td>
</tr>
<tr>
<td class="method-data">
<a name="methodget_ratio"></a>
<h2>get_ratio</h2>
<table class="method-detail" cellspacing="0">
<tr>
<td nowrap="nowrap">public float <strong>get_ratio</strong></td>
<td width="100%">()</td>
</tr>
</table>
<p>Get compression ratio</p>
<div class="tag-list"><table class="method-summary" cellspacing="1">
<tr><th colspan="3" class="small">Output</th></tr>
<tr><th colspan="3" class="small">Exception</th></tr>
</table></div>
<p/>
</td>
</tr>
<tr>
<td class="method-data">
<a name="methodplain"></a>
<h2>plain</h2>
<table class="method-detail" cellspacing="0">
<tr>
<td nowrap="nowrap">public string <strong>plain</strong></td>
<td width="100%">()</td>
</tr>
</table>
<p>Returns the CSS code as plain text</p>
<div class="tag-list"><table class="method-summary" cellspacing="1">
<tr><th colspan="3" class="small">Output</th></tr>
<tr><th colspan="3" class="small">Exception</th></tr>
</table></div>
<p/>
</td>
</tr>
<tr>
<td class="method-data">
<a name="methodsize"></a>
<h2>size</h2>
<table class="method-detail" cellspacing="0">
<tr>
<td nowrap="nowrap">public integer <strong>size</strong></td>
<td width="100%">(string $loc )</td>
</tr>
</table>
<p>Get the size of either input or output CSS in KB</p>
<div class="tag-list"><table class="method-summary" cellspacing="1">
<tr><th colspan="3" class="small">Input</th></tr>
<tr><td valign="top">string</td><td valign="top"><strong>$loc</strong><td valign="top">default is "output"</td></tr>
<tr><th colspan="3" class="small">Output</th></tr>
<tr><th colspan="3" class="small">Exception</th></tr>
</table></div>
<p/>
</td>
</tr>
</table>
<!-- content end --></td></tr></table>
</td>
</tr>
</table>
</div><!-- main -->
<div id="footer">
Copyright © 2007 - <a title="diemeisterei" href="http://www.diemeisterei.de/">diemeisterei GmbH</a><br/>
<a title="phundament" href="http://www.phundament.com/">phundament</a>
</div>
</div><!-- page -->
</body>
</html>