Main Page | Namespace List | Class Hierarchy | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

Creport Class Reference

Inheritance diagram for Creport:

Cezpdf Cpdf

Public Member Functions

 Creport ($p, $o)
 rf ($info)
 dots ($info)

Data Fields

 $reportContents = array()

Detailed Description

Definition at line 24 of file readme.php.


Constructor & Destructor Documentation

Creport::Creport p,
o
 

Definition at line 28 of file readme.php.

References Cezpdf::Cezpdf().

00028                        {
00029   $this->Cezpdf($p,$o);
00030 }


Member Function Documentation

Creport::dots info  ) 
 

Definition at line 43 of file readme.php.

References $size, $tmp, $xpos, Cpdf::addText(), Cpdf::line(), Cpdf::restoreState(), Cpdf::saveState(), Cpdf::setLineStyle(), and size.

00043                     {
00044   // draw a dotted line over to the right and put on a page number
00045   $tmp = $info['p'];
00046   $lvl = $tmp[0];
00047   $lbl = substr($tmp,1);
00048   $xpos = 520;
00049 
00050   switch($lvl){
00051     case '1':
00052       $size=16;
00053       $thick=1;
00054       break;
00055     case '2':
00056       $size=12;
00057       $thick=0.5;
00058       break;
00059   }
00060 
00061   $this->saveState();
00062   $this->setLineStyle($thick,'round','',array(0,10));
00063   $this->line($xpos,$info['y'],$info['x']+5,$info['y']);
00064   $this->restoreState();
00065   $this->addText($xpos+5,$info['y'],$size,$lbl);
00066 
00067 
00068 }

Creport::rf info  ) 
 

Definition at line 32 of file readme.php.

References $num, $tmp, Cpdf::addDestination(), and Cezpdf::ezWhatPageNumber().

00032                   {
00033   // this callback records all of the table of contents entries, it also places a destination marker there
00034   // so that it can be linked too
00035   $tmp = $info['p'];
00036   $lvl = $tmp[0];
00037   $lbl = rawurldecode(substr($tmp,1));
00038   $num=$this->ezWhatPageNumber($this->ezGetCurrentPageNumber());
00039   $this->reportContents[] = array($lbl,$num,$lvl );
00040   $this->addDestination('toc'.(count($this->reportContents)-1),'FitH',$info['y']+$info['height']);
00041 }


Field Documentation

Creport::$reportContents = array()
 

Definition at line 26 of file readme.php.


The documentation for this class was generated from the following file: