Tags
Table of Contents
- $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.
- __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
$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
Return values
mixed —Footer()
This method is used to render the page footer and overrides the original Footer() method on TCPDF.
public Footer()
: mixed
Tags
Return values
mixed —Header()
This method is used to render the page header and overrides the original Header() method on TCPDF.
public Header()
: mixed
Tags
Return values
mixed —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
Return values
mixed —printSVGStatsGraph()
Print SVG graph
public printSVGStatsGraph( $svgdata)
: mixed
Parameters
Tags
Return values
mixed —printTestResultStat()
Print test stats table
public printTestResultStat( $data[,
$pubmode
= false
][,
$stats
= 2
]) : mixed
Parameters
- $data :
-
(array) Array containing test statistics.
- $pubmode : = false
-
(boolean) If true filter the results for the public interface.
- $stats : = 2
-
(int) 2 = full stats; 1 = user stats; 0 = disabled stats;
Return values
mixed —printTestUserInfo()
Print testuser data
public printTestUserInfo( $data[,
$onlytext
= false
]) : mixed
Parameters
- $data :
-
(array) Array containing test statistics.
- $onlytext : = false
-
(boolean) If true print only text questions.
Return values
mixed —printUserTestDetails()
print test details for the selected user
public printUserTestDetails( $data[,
$onlytext
= false
]) : mixed
Parameters
- $data :
-
(array) Testuser data array.
- $onlytext : = false
-
(boolean) If true print only text questions.
Return values
mixed —setTCExamBackLink()
Set an URL link that points back to TCExam website (this will be printed as QR-Code on header).
public setTCExamBackLink( $link)
: mixed