Tags
Table of Contents
Properties
- $booklet : mixed
- $cell_height_ratio : mixed
- $header_xobjid : mixed
- $imgscale : mixed
- $k : mixed
- $original_lMargin : mixed
- $original_rMargin : mixed
- $page : mixed
- $rtl : mixed
- $w : mixed
- $x : mixed
- $y : mixed
- $tce_cell_height_ratio : mixed
- $tce_data_cell_height : mixed
- $tce_main_cell_height : mixed
- $tce_page_width : mixed
- $tcexam_backlink : mixed
- URL link that points back to TCExam website.
Methods
- __construct() : mixed
- This is the class constructor.
- Footer() : mixed
- This method is used to render the page footer and overrides the original Footer() method on TCPDF.
- Header() : mixed
- This method is used to render the page header and overrides the original Header() method on TCPDF.
- printQuestionStats() : mixed
- Print question stats.
- printSVGStatsGraph() : mixed
- Print SVG graph
- printTestResultStat() : mixed
- Print test stats table
- printTestUserInfo() : mixed
- Print testuser data
- printUserTestDetails() : mixed
- print test details for the selected user
- setTCExamBackLink() : mixed
- Set an URL link that points back to TCExam website (this will be printed as QR-Code on header).
Properties
$booklet
public mixed $booklet
$cell_height_ratio
public mixed $cell_height_ratio
$header_xobjid
public mixed $header_xobjid
$imgscale
public mixed $imgscale
$k
public mixed $k
$original_lMargin
public mixed $original_lMargin
$original_rMargin
public mixed $original_rMargin
$page
public mixed $page
$rtl
public mixed $rtl
$w
public mixed $w
$x
public mixed $x
$y
public mixed $y
$tce_cell_height_ratio
protected mixed $tce_cell_height_ratio
Tags
$tce_data_cell_height
protected mixed $tce_data_cell_height
Tags
$tce_main_cell_height
protected mixed $tce_main_cell_height
Tags
$tce_page_width
protected mixed $tce_page_width
Tags
$tcexam_backlink
URL link that points back to TCExam website.
protected mixed $tcexam_backlink =
''
Tags
Methods
__construct()
This is the class constructor.
public __construct([ $orientation
= 'P'
][,
$unit
= 'mm'
][,
$format
= 'A4'
][,
$unicode
= true
][,
$encoding
= 'UTF-8'
][,
$diskcache
= false
][,
$pdfa
= false
]) : mixed
It allows to set up the page format, the orientation and the measure unit used in all the methods (except for the font sizes).
Parameters
- $orientation : = 'P'
-
(string) page orientation. Possible values are (case insensitive):
- P or Portrait (default)
- L or Landscape
- '' (empty string) for automatic orientation
- $unit : = 'mm'
-
(string) User measure unit. Possible values are:
- pt: point
- mm: millimeter (default)
- cm: centimeter
- in: inch
A point equals 1/72 of inch, that is to say about 0.35 mm (an inch being 2.54 cm). This is a very common unit in typography; font sizes are expressed in that unit. - $format : = 'A4'
-
(mixed) The format used for pages. It can be either: one of the string values specified at getPageSizeFromFormat() or an array of parameters specified at setPageFormat().
- $unicode : = true
-
(boolean) TRUE means that the input text is unicode (default = true)
- $encoding : = 'UTF-8'
-
(string) Charset encoding; default is UTF-8.
- $diskcache : = false
-
(boolean) If TRUE reduce the RAM memory usage by caching temporary data on filesystem (slower).
- $pdfa : = false
-
(boolean) If TRUE set the document to PDF/A mode.
Tags
Footer()
This method is used to render the page footer and overrides the original Footer() method on TCPDF.
public Footer()
: mixed
Tags
Header()
This method is used to render the page header and overrides the original Header() method on TCPDF.
public Header()
: mixed
Tags
printQuestionStats()
Print question stats.
public printQuestionStats( $stats[,
$display_mode
= 2
]) : mixed
Parameters
- $stats :
-
(array) data to print
- $display_mode : = 2
-
(int) display mode: 0 = disabled; 1 = minimum; 2 = module; 3 = subject; 4 = question; 5 = answer.
Tags
printSVGStatsGraph()
Print SVG graph
public printSVGStatsGraph( $svgdata)
: mixed
Parameters
Tags
printTestResultStat()
Print test stats table
public printTestResultStat( $data[,
$pubmode
= false
][,
$stats
= 2
]) : mixed
Parameters
printTestUserInfo()
Print testuser data
public printTestUserInfo( $data[,
$onlytext
= false
]) : mixed
Parameters
printUserTestDetails()
print test details for the selected user
public printUserTestDetails( $data[,
$onlytext
= false
]) : mixed
Parameters
setTCExamBackLink()
Set an URL link that points back to TCExam website (this will be printed as QR-Code on header).
public setTCExamBackLink( $link)
: mixed