Location: PHPKode > scripts > CSS Prefix Spawner > CSS-Prefix-Spawner-master/csstidy/Docs/csstidy/csstidy_print.html
<html>
<head>
<title>Docs For Class csstidy_print</title>
<link rel="stylesheet" type="text/css" href="../media/style.css">
</head>
<body>

<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%">
  <tr>
    <td class="header_top">csstidy</td>
  </tr>
  <tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt=""  /></td></tr>
  <tr>
    <td class="header_menu">
  		  [ <a href="../classtrees_csstidy.html" class="menu">class tree: csstidy</a> ]
		  [ <a href="../elementindex_csstidy.html" class="menu">index: csstidy</a> ]
		  [ <a href="../elementindex.html" class="menu">all elements</a> ]
    </td>
  </tr>
  <tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt=""  /></td></tr>
</table>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="200" class="menu">
	<div id="todolist">
			<p><a href="../todolist.html">Todo List</a></p>
	</div>
      <b>Packages:</b><br />
              <a href="../li_csstidy.html">csstidy</a><br />
            <br /><br />
                        <b>Files:</b><br />
      	  <div class="package">
			<a href="../csstidy/_class_csstidy_php.html">		class.csstidy.php
		</a><br>
			<a href="../csstidy/_class_csstidy_optimise_php.html">		class.csstidy_optimise.php
		</a><br>
			<a href="../csstidy/_class_csstidy_print_php.html">		class.csstidy_print.php
		</a><br>
			<a href="../csstidy/_data_inc_php.html">		data.inc.php
		</a><br>
	  </div><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">

<h1>Class: csstidy_print</h1>
Source Location: /class.csstidy_print.php<br /><br />


<table width="100%" border="0">
<tr><td valign="top">

<h3><a href="#class_details">Class Overview</a></h3>
<pre></pre><br />
<div class="description">CSS Printing class</div><br /><br />
<h4>Author(s):</h4>
<ul>
                <li>Florian Schmitz (floele at gmail dot com) 2005-2006</li>
      </ul>




    
        
<h4>Version:</h4>
<ul>
  <li>1.0</li>
</ul>


</td>

<td valign="top">
<h3><a href="#class_vars">Variables</a></h3>
<ul>
    <li><a href="../csstidy/csstidy_print.html#var$input_css">$input_css</a></li>
    <li><a href="../csstidy/csstidy_print.html#var$output_css">$output_css</a></li>
    <li><a href="../csstidy/csstidy_print.html#var$output_css_plain">$output_css_plain</a></li>
  </ul>
</td>


<td valign="top">
<h3><a href="#class_methods">Methods</a></h3>
<ul>
    <li><a href="../csstidy/csstidy_print.html#methodcsstidy_print">csstidy_print</a></li>
    <li><a href="../csstidy/csstidy_print.html#methodformatted">formatted</a></li>
    <li><a href="../csstidy/csstidy_print.html#methodget_diff">get_diff</a></li>
    <li><a href="../csstidy/csstidy_print.html#methodget_ratio">get_ratio</a></li>
    <li><a href="../csstidy/csstidy_print.html#methodplain">plain</a></li>
    <li><a href="../csstidy/csstidy_print.html#methodsize">size</a></li>
    <li><a href="../csstidy/csstidy_print.html#method_convert_raw_css">_convert_raw_css</a></li>
    <li><a href="../csstidy/csstidy_print.html#method_htmlsp">_htmlsp</a></li>
    <li><a href="../csstidy/csstidy_print.html#method_print">_print</a></li>
    <li><a href="../csstidy/csstidy_print.html#method_reset">_reset</a></li>
    <li><a href="../csstidy/csstidy_print.html#method_seeknocomment">_seeknocomment</a></li>
  </ul>
</td>

</tr></table>
<hr />

<table width="100%" border="0"><tr>






</tr></table>
<hr />

<a name="class_details"></a>
<h3>Class Details</h3>
<div class="tags">
[line <a href="..//__filesource/fsource_csstidy__class.csstidy_print.php.html#a39">39</a>]<br />
CSS Printing class<br /><br /><p>This class prints CSS data generated by csstidy.</p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>version:</b>&nbsp;&nbsp;</td><td>1.0</td>
  </tr>
  <tr>
    <td><b>author:</b>&nbsp;&nbsp;</td><td>Florian Schmitz (floele at gmail dot com) 2005-2006</td>
  </tr>
</table>
</div>
</div><br /><br />
<div class="top">[ <a href="#top">Top</a> ]</div><br />

<hr />
<a name="class_vars"></a>
<h3>Class Variables</h3>
<div class="tags">
	<a name="var$input_css"></a>
	<p></p>
	<h4>$input_css = <span class="value">&nbsp;''</span></h4>
	<p>[line <a href="..//__filesource/fsource_csstidy__class.csstidy_print.php.html#a46">46</a>]</p>
  Saves the input CSS string<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>private</td>
  </tr>
</table>
</div>

  <br />
	<div class="tags">
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><b>Type:</b>&nbsp;&nbsp;</td>
      <td>string</td>
    </tr>
      </table>
	</div><br /><br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
	<a name="var$output_css"></a>
	<p></p>
	<h4>$output_css = <span class="value">&nbsp;''</span></h4>
	<p>[line <a href="..//__filesource/fsource_csstidy__class.csstidy_print.php.html#a53">53</a>]</p>
  Saves the formatted CSS string<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>

  <br />
	<div class="tags">
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><b>Type:</b>&nbsp;&nbsp;</td>
      <td>string</td>
    </tr>
      </table>
	</div><br /><br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
	<a name="var$output_css_plain"></a>
	<p></p>
	<h4>$output_css_plain = <span class="value">&nbsp;''</span></h4>
	<p>[line <a href="..//__filesource/fsource_csstidy__class.csstidy_print.php.html#a60">60</a>]</p>
  Saves the formatted CSS string (plain text)<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>

  <br />
	<div class="tags">
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><b>Type:</b>&nbsp;&nbsp;</td>
      <td>string</td>
    </tr>
      </table>
	</div><br /><br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
</div><br />

<hr />
<a name="class_methods"></a>
<h3>Class Methods</h3>
<div class="tags">
  <hr />
	<a name="methodcsstidy_print"></a>
	<h3>constructor csstidy_print <span class="smalllinenumber">[line <a href="..//__filesource/fsource_csstidy__class.csstidy_print.php.html#a68">68</a>]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>csstidy_print csstidy_print(
array
&$css)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Constructor<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>version:</b>&nbsp;&nbsp;</td><td>1.0</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>private</td>
  </tr>
</table>
</div>
<br /><br />


        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">array&nbsp;&nbsp;</td>
        <td><b>$css</b>&nbsp;&nbsp;</td>
        <td>contains the class csstidy</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodformatted"></a>
	<h3>method formatted <span class="smalllinenumber">[line <a href="..//__filesource/fsource_csstidy__class.csstidy_print.php.html#a108">108</a>]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>string formatted(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Returns the formatted CSS code<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>version:</b>&nbsp;&nbsp;</td><td>1.0</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodget_diff"></a>
	<h3>method get_diff <span class="smalllinenumber">[line <a href="..//__filesource/fsource_csstidy__class.csstidy_print.php.html#a313">313</a>]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>string get_diff(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Get difference between the old and new code in bytes and prints the code if necessary.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>version:</b>&nbsp;&nbsp;</td><td>1.1</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodget_ratio"></a>
	<h3>method get_ratio <span class="smalllinenumber">[line <a href="..//__filesource/fsource_csstidy__class.csstidy_print.php.html#a299">299</a>]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>float get_ratio(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Get compression ratio<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>version:</b>&nbsp;&nbsp;</td><td>1.2</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodplain"></a>
	<h3>method plain <span class="smalllinenumber">[line <a href="..//__filesource/fsource_csstidy__class.csstidy_print.php.html#a96">96</a>]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>string plain(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Returns the CSS code as plain text<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>version:</b>&nbsp;&nbsp;</td><td>1.0</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodsize"></a>
	<h3>method size <span class="smalllinenumber">[line <a href="..//__filesource/fsource_csstidy__class.csstidy_print.php.html#a337">337</a>]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>integer size(
[string
$loc = 'output'])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Get the size of either input or output CSS in KB<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>version:</b>&nbsp;&nbsp;</td><td>1.0</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />


        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$loc</b>&nbsp;&nbsp;</td>
        <td>default is &quot;output&quot;</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="method_convert_raw_css"></a>
	<h3>method _convert_raw_css <span class="smalllinenumber">[line <a href="..//__filesource/fsource_csstidy__class.csstidy_print.php.html#a244">244</a>]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>void _convert_raw_css(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Converts $this-&gt;css array to a raw array ($this-&gt;tokens)<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>version:</b>&nbsp;&nbsp;</td><td>1.0</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>private</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="method_htmlsp"></a>
	<h3>method _htmlsp <span class="smalllinenumber">[line <a href="..//__filesource/fsource_csstidy__class.csstidy_print.php.html#a285">285</a>]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>string _htmlsp(
string
$string, bool
$plain)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Same as htmlspecialchars, only that chars are not replaced if $plain !== true. This makes  print_code() cleaner.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>version:</b>&nbsp;&nbsp;</td><td>1.0</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>private</td>
  </tr>
  <tr>
    <td><b>see:</b>&nbsp;&nbsp;</td><td><a href="../csstidy/csstidy_print.html#method_print">csstidy_print::_print()</a></td>
  </tr>
</table>
</div>
<br /><br />


        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$string</b>&nbsp;&nbsp;</td>
        <td></td>
      </tr>
          <tr>
        <td class="type">bool&nbsp;&nbsp;</td>
        <td><b>$plain</b>&nbsp;&nbsp;</td>
        <td></td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="method_print"></a>
	<h3>method _print <span class="smalllinenumber">[line <a href="..//__filesource/fsource_csstidy__class.csstidy_print.php.html#a120">120</a>]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>void _print(
[bool
$plain = false])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Returns the formatted CSS Code and saves it into $this-&gt;output_css and $this-&gt;output_css_plain<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>version:</b>&nbsp;&nbsp;</td><td>2.0</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>private</td>
  </tr>
</table>
</div>
<br /><br />


        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">bool&nbsp;&nbsp;</td>
        <td><b>$plain</b>&nbsp;&nbsp;</td>
        <td>plain text or not</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="method_reset"></a>
	<h3>method _reset <span class="smalllinenumber">[line <a href="..//__filesource/fsource_csstidy__class.csstidy_print.php.html#a84">84</a>]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>void _reset(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Resets output_css and output_css_plain (new css code)<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>version:</b>&nbsp;&nbsp;</td><td>1.0</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>private</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="method_seeknocomment"></a>
	<h3>method _seeknocomment <span class="smalllinenumber">[line <a href="..//__filesource/fsource_csstidy__class.csstidy_print.php.html#a225">225</a>]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>mixed _seeknocomment(
integer
$key, integer
$move)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Gets the next token type which is $move away from $key, excluding comments<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>return:</b>&nbsp;&nbsp;</td><td>a token type</td>
  </tr>
  <tr>
    <td><b>version:</b>&nbsp;&nbsp;</td><td>1.0</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>private</td>
  </tr>
</table>
</div>
<br /><br />


        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">integer&nbsp;&nbsp;</td>
        <td><b>$key</b>&nbsp;&nbsp;</td>
        <td>current position</td>
      </tr>
          <tr>
        <td class="type">integer&nbsp;&nbsp;</td>
        <td><b>$move</b>&nbsp;&nbsp;</td>
        <td>move this far</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
</div><br />


        <div class="credit">
		    <hr />
		    Documentation generated on Mon, 15 May 2006 22:55:42 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.3.0RC3</a>
	      </div>
      </td></tr></table>
    </td>
  </tr>
</table>

</body>
</html>
Return current item: CSS Prefix Spawner