1
0
mirror of https://github.com/phpmyadmin/phpmyadmin.git synced 2026-10-29 21:24:44 +03:00

Add some docblocks

This commit is contained in:
Michal Čihař
2011-08-05 10:17:16 +02:00
parent 8880f996bf
commit 4833db7d64

View File

@@ -71,12 +71,17 @@ class PMA_PDF extends TCPDF
parent::_putpages();
}
// added because tcpdf for PHP 5 has a protected $buffer
/**
* Getter for protected buffer.
*/
public function getBuffer()
{
return $this->buffer;
}
/**
* Getter for protected state.
*/
public function getState()
{
return $this->state;
@@ -230,9 +235,11 @@ class PMA_PDF extends TCPDF
}
}
/**
* This function must be named "Footer" to work with the TCPDF library
*/
function Footer()
{
// This function must be named "Footer" to work with the TCPDF library
global $with_doc;
if ($with_doc) {
$this->SetY(-15);
@@ -243,9 +250,11 @@ class PMA_PDF extends TCPDF
}
}
/**
* Add a bookmark
*/
function Bookmark($txt, $level = 0, $y = 0, $page = '')
{
// Add a bookmark
$this->Outlines[0][] = $level;
$this->Outlines[1][] = $txt;
$this->Outlines[2][] = $this->page;
@@ -379,9 +388,11 @@ class PMA_PDF extends TCPDF
$this->Ln($h);
}
/**
* Compute number of lines used by a multicell of width w
*/
function NbLines($w, $txt)
{
// compute number of lines used by a multicell of width w
$cw = &$this->CurrentFont['cw'];
if ($w == 0) {
$w = $this->w - $this->rMargin - $this->x;