class Pdf extends Pdf

Adapted from a LGPL script by Philip Clarke

Constants

PMA_PDF_FONT

PDF font to use.

Properties

$footerset from Pdf
$Alias from Pdf
$tablewidths
$headerset

Methods

__construct(string $orientation = 'P', string $unit = 'mm', string $format = 'A4', boolean $unicode = true, string $encoding = 'UTF-8', boolean $diskcache = false, boolean $pdfa = false)

Constructs PDF and configures standard parameters.

Footer()

No description

from Pdf
void
setAlias(string $name, string $value)

Function to set alias which will be expanded on page rendering.

from Pdf
void
_putpages()

Improved with alias expanding.

from Pdf
Error($error_message = '')

No description

from Pdf
void
download(string $filename)

Sends file as a download to user.

from Pdf
boolean
checkPageBreak(float|int $h = 0, mixed $y = '', boolean $addpage = true)

Add page if needed.

Header()

No description

void
morepagestable(int $lineheight = 8)

Generate table

void
setAttributes(array $attr = [])

Sets a set of attributes.

void
setTopMargin(float $topMargin)

Defines the top margin.

void
getTriggers(string $db, string $table)

Prints triggers

void
getTableDef(string $db, string $table, bool $do_relation, bool $do_comments, bool $do_mime, bool $view = false, array $aliases = [])

Print $table's CREATE definition

void
mysqlReport(string $query)

MySQL report

Details

at line 74
__construct(string $orientation = 'P', string $unit = 'mm', string $format = 'A4', boolean $unicode = true, string $encoding = 'UTF-8', boolean $diskcache = false, boolean $pdfa = false)

Constructs PDF and configures standard parameters.

Parameters

string $orientation page orientation
string $unit unit
string $format the format used for pages
boolean $unicode true means that the input text is unicode
string $encoding charset encoding; default is UTF-8.
boolean $diskcache if true reduce the RAM memory usage by caching temporary data on filesystem (slower).
boolean $pdfa If TRUE set the document to PDF/A mode.

in Pdf at line 111
void setAlias(string $name, string $value)

Function to set alias which will be expanded on page rendering.

Parameters

string $name name of the alias
string $value value of the alias

Return Value

void

in Pdf at line 132
void _putpages()

Improved with alias expanding.

Return Value

void

in Pdf at line 151
Error($error_message = '')

Parameters

$error_message

in Pdf at line 166
void download(string $filename)

Sends file as a download to user.

Parameters

string $filename file name

Return Value

void

at line 107
boolean checkPageBreak(float|int $h = 0, mixed $y = '', boolean $addpage = true)

Add page if needed.

Parameters

float|int $h cell height. Default value: 0
mixed $y starting y position, leave empty for current position
boolean $addpage if true add a page, otherwise only return the true/false state

Return Value

boolean true in case of page break, false otherwise.

at line 156
Header()

at line 238
void morepagestable(int $lineheight = 8)

Generate table

Parameters

int $lineheight Height of line

Return Value

void

at line 323
void setAttributes(array $attr = [])

Sets a set of attributes.

Parameters

array $attr array containing the attributes

Return Value

void

at line 338
void setTopMargin(float $topMargin)

Defines the top margin.

The method can be called before creating the first page.

Parameters

float $topMargin the margin

Return Value

void

at line 351
void getTriggers(string $db, string $table)

Prints triggers

Parameters

string $db database name
string $table table name

Return Value

void

at line 479
void getTableDef(string $db, string $table, bool $do_relation, bool $do_comments, bool $do_mime, bool $view = false, array $aliases = [])

Print $table's CREATE definition

Parameters

string $db the database name
string $table the table name
bool $do_relation whether to include relation comments
bool $do_comments whether to include the pmadb-style column comments as comments in the structure; this is deprecated but the parameter is left here because /export calls PMA_exportStructure() also for other export types which use this parameter
bool $do_mime whether to include mime comments
bool $view whether we're handling a view
array $aliases aliases of db/table/columns

Return Value

void

at line 692
void mysqlReport(string $query)

MySQL report

Parameters

string $query Query to execute

Return Value

void