altocompta/doc/developper/html/classCreport.html
2006-07-12 21:24:48 +00:00

213 lines
11 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>phpcompta: Creport Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.4 -->
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a></div>
<h1>Creport Class Reference</h1><!-- doxytag: class="Creport" --><!-- doxytag: inherits="Cezpdf" --><p>Inheritance diagram for Creport:
<p><center><img src="classCreport.png" usemap="#Creport_map" border="0" alt=""></center>
<map name="Creport_map">
<area href="classCezpdf.html" alt="Cezpdf" shape="rect" coords="0,56,55,80">
<area href="classCpdf.html" alt="Cpdf" shape="rect" coords="0,0,55,24">
</map>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCreport.html#a0">Creport</a> ($p, $o)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCreport.html#a1">rf</a> ($info)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCreport.html#a2">dots</a> ($info)</td></tr>
<tr><td colspan="2"><br><h2>Data Fields</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCreport.html#o0">$reportContents</a> = array()</td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<p>
<p>
Definition at line <a class="el" href="readme_8php-source.html#l00024">24</a> of file <a class="el" href="readme_8php-source.html">readme.php</a>.<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="a0"></a><!-- doxytag: member="Creport::Creport" ref="a0" args="($p, $o)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">Creport::Creport </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</td>
<td class="mdname" nowrap> <em>p</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>o</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
<p>
Definition at line <a class="el" href="readme_8php-source.html#l00028">28</a> of file <a class="el" href="readme_8php-source.html">readme.php</a>.
<p>
References <a class="el" href="class_8ezpdf_8php-source.html#l00028">Cezpdf::Cezpdf()</a>.<div class="fragment"><pre class="fragment"><a name="l00028"></a>00028 {
<a name="l00029"></a>00029 $this-&gt;<a class="code" href="classCezpdf.html#a0">Cezpdf</a>($p,$o);
<a name="l00030"></a>00030 }
</pre></div>
<p>
</td>
</tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="a2"></a><!-- doxytag: member="Creport::dots" ref="a2" args="($info)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">Creport::dots </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>info</em> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
<p>
Definition at line <a class="el" href="readme_8php-source.html#l00043">43</a> of file <a class="el" href="readme_8php-source.html">readme.php</a>.
<p>
References <a class="el" href="readme_8php-source.html#l00185">$size</a>, <a class="el" href="show__document__modele_8php-source.html#l00050">$tmp</a>, <a class="el" href="readme_8php-source.html#l00272">$xpos</a>, <a class="el" href="class_8pdf_8php-source.html#l02156">Cpdf::addText()</a>, <a class="el" href="class_8pdf_8php-source.html#l01675">Cpdf::line()</a>, <a class="el" href="class_8pdf_8php-source.html#l02471">Cpdf::restoreState()</a>, <a class="el" href="class_8pdf_8php-source.html#l02447">Cpdf::saveState()</a>, <a class="el" href="class_8pdf_8php-source.html#l01789">Cpdf::setLineStyle()</a>, and <a class="el" href="tva_8inc_8php-source.html#l00212">size</a>.<div class="fragment"><pre class="fragment"><a name="l00043"></a>00043 {
<a name="l00044"></a>00044 <span class="comment">// draw a dotted line over to the right and put on a page number</span>
<a name="l00045"></a>00045 <a class="code" href="show__document__modele_8php.html#a5">$tmp</a> = $info[<span class="charliteral">'p'</span>];
<a name="l00046"></a>00046 $lvl = <a class="code" href="show__document__modele_8php.html#a5">$tmp</a>[0];
<a name="l00047"></a>00047 $lbl = substr($tmp,1);
<a name="l00048"></a>00048 <a class="code" href="readme_8php.html#a21">$xpos</a> = 520;
<a name="l00049"></a>00049
<a name="l00050"></a>00050 <span class="keywordflow">switch</span>($lvl){
<a name="l00051"></a>00051 <span class="keywordflow">case</span> <span class="charliteral">'1'</span>:
<a name="l00052"></a>00052 <a class="code" href="readme_8php.html#a8">$size</a>=16;
<a name="l00053"></a>00053 $thick=1;
<a name="l00054"></a>00054 <span class="keywordflow">break</span>;
<a name="l00055"></a>00055 <span class="keywordflow">case</span> <span class="charliteral">'2'</span>:
<a name="l00056"></a>00056 <a class="code" href="readme_8php.html#a8">$size</a>=12;
<a name="l00057"></a>00057 $thick=0.5;
<a name="l00058"></a>00058 <span class="keywordflow">break</span>;
<a name="l00059"></a>00059 }
<a name="l00060"></a>00060
<a name="l00061"></a>00061 $this-&gt;<a class="code" href="classCpdf.html#a55">saveState</a>();
<a name="l00062"></a>00062 $this-&gt;<a class="code" href="classCpdf.html#a39">setLineStyle</a>($thick,'round<span class="charliteral">','</span>',array(0,10));
<a name="l00063"></a>00063 $this-&gt;<a class="code" href="classCpdf.html#a34">line</a>($xpos,$info[<span class="charliteral">'y'</span>],$info[<span class="charliteral">'x'</span>]+5,$info[<span class="charliteral">'y'</span>]);
<a name="l00064"></a>00064 $this-&gt;<a class="code" href="classCpdf.html#a56">restoreState</a>();
<a name="l00065"></a>00065 $this-&gt;<a class="code" href="classCpdf.html#a51">addText</a>($xpos+5,$info[<span class="charliteral">'y'</span>],$<a class="code" href="tva_8inc_8php.html#a15">size</a>,$lbl);
<a name="l00066"></a>00066
<a name="l00067"></a>00067
<a name="l00068"></a>00068 }
</pre></div>
<p>
</td>
</tr>
</table>
<a class="anchor" name="a1"></a><!-- doxytag: member="Creport::rf" ref="a1" args="($info)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">Creport::rf </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>info</em> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
<p>
Definition at line <a class="el" href="readme_8php-source.html#l00032">32</a> of file <a class="el" href="readme_8php-source.html">readme.php</a>.
<p>
References <a class="el" href="jrn__add_8php-source.html#l00172">$num</a>, <a class="el" href="show__document__modele_8php-source.html#l00050">$tmp</a>, <a class="el" href="class_8pdf_8php-source.html#l02969">Cpdf::addDestination()</a>, and <a class="el" href="class_8ezpdf_8php-source.html#l00299">Cezpdf::ezWhatPageNumber()</a>.<div class="fragment"><pre class="fragment"><a name="l00032"></a>00032 {
<a name="l00033"></a>00033 <span class="comment">// this callback records all of the table of contents entries, it also places a destination marker there</span>
<a name="l00034"></a>00034 <span class="comment">// so that it can be linked too</span>
<a name="l00035"></a>00035 <a class="code" href="show__document__modele_8php.html#a5">$tmp</a> = $info[<span class="charliteral">'p'</span>];
<a name="l00036"></a>00036 $lvl = <a class="code" href="show__document__modele_8php.html#a5">$tmp</a>[0];
<a name="l00037"></a>00037 $lbl = rawurldecode(substr($tmp,1));
<a name="l00038"></a>00038 <a class="code" href="jrn__add_8php.html#a17">$num</a>=$this-&gt;<a class="code" href="classCezpdf.html#a9">ezWhatPageNumber</a>($this-&gt;ezGetCurrentPageNumber());
<a name="l00039"></a>00039 $this-&gt;reportContents[] = array($lbl,$num,$lvl );
<a name="l00040"></a>00040 $this-&gt;<a class="code" href="classCpdf.html#a70">addDestination</a>('toc'.(count($this-&gt;reportContents)-1),'FitH',$info[<span class="charliteral">'y'</span>]+$info['height']);
<a name="l00041"></a>00041 }
</pre></div>
<p>
</td>
</tr>
</table>
<hr><h2>Field Documentation</h2>
<a class="anchor" name="o0"></a><!-- doxytag: member="Creport::$reportContents" ref="o0" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">Creport::$reportContents = array() </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
<p>
Definition at line <a class="el" href="readme_8php-source.html#l00026">26</a> of file <a class="el" href="readme_8php-source.html">readme.php</a>. </td>
</tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="readme_8php-source.html">readme.php</a></ul>
</BODY>
</HTML>