◆ __construct()
◆ formatNumberString()
ilXlsFoParser::formatNumberString |
( |
|
$a_number | ) |
|
|
private |
◆ parse()
ilXlsFoParser::parse |
( |
array |
$formData | ) |
|
- Parameters
-
array | $formData | |
string | $backgroundImageName | |
- Returns
- string
- Exceptions
-
Definition at line 98 of file class.ilXlsFoParser.php.
References Sabre\VObject\$output, PHPMailer\PHPMailer\$params, formatNumberString(), and settings().
100 $content =
"<html><body>" . $formData[
'certificate_text'] .
"</body></html>";
101 $content = preg_replace(
"/<p>( ){1,}<\\/p>/",
"<p></p>", $content);
102 $content = preg_replace(
"/<p>(\\s)*?<\\/p>/",
"<p></p>", $content);
103 $content = str_replace(
"<p></p>",
"<p class=\"emptyrow\"></p>", $content);
104 $content = str_replace(
" ",
" ", $content);
105 $content = preg_replace(
"//",
"", $content);
107 $this->xmlChecker->setXMLContent($content);
108 $this->xmlChecker->startParsing();
110 if ($this->xmlChecker->hasError()) {
114 $xsl = $this->certificateXlsFileLoader->getXlsCertificateContent();
118 'font-family="Helvetica, unifont"',
119 'font-family="' . $this->
settings->get(
'rpc_pdf_font',
'Helvetica, unifont') .
'"',
128 if (strcmp($formData[
'pageformat'],
'custom') == 0) {
129 $pageheight = $formData[
'pageheight'];
130 $pagewidth = $formData[
'pagewidth'];
132 $pageformats = $this->pageFormats->fetchPageFormats();
133 $pageheight = $pageformats[$formData[
'pageformat']][
'height'];
134 $pagewidth = $pageformats[$formData[
'pageformat']][
'width'];
138 'pageheight' => $this->
formatNumberString($this->utilHelper->stripSlashes($pageheight)),
139 'pagewidth' => $this->
formatNumberString($this->utilHelper->stripSlashes($pagewidth)),
140 'backgroundimage' =>
'[BACKGROUND_IMAGE]',
141 'marginbody' => implode(
144 $this->
formatNumberString($this->utilHelper->stripSlashes($formData[
'margin_body'][
'top'])),
145 $this->
formatNumberString($this->utilHelper->stripSlashes($formData[
'margin_body'][
'right'])),
146 $this->
formatNumberString($this->utilHelper->stripSlashes($formData[
'margin_body'][
'bottom'])),
147 $this->
formatNumberString($this->utilHelper->stripSlashes($formData[
'margin_body'][
'left']))
formatNumberString($a_number)
◆ $certificateXlsFileLoader
ilXlsFoParser::$certificateXlsFileLoader |
|
private |
◆ $language
◆ $pageFormats
ilXlsFoParser::$pageFormats |
|
private |
◆ $settings
◆ $utilHelper
ilXlsFoParser::$utilHelper |
|
private |
◆ $xlstProcess
ilXlsFoParser::$xlstProcess |
|
private |
◆ $xmlChecker
ilXlsFoParser::$xmlChecker |
|
private |
The documentation for this class was generated from the following file: