ILIAS
release_5-1 Revision 5.0.0-5477-g43f3e3fab5
◀ ilDoc Overview
HTMLWriter.php
Go to the documentation of this file.
1
<?php
2
3
namespace
SimpleExcel\Writer
;
4
11
class
HTMLWriter
extends
BaseWriter
implements
IWriter
12
{
19
protected
$content_type
=
'text/html'
;
20
27
protected
$file_extension
=
'html'
;
28
34
public
function
saveString
(){
35
$content =
'<table>'
;
36
foreach
($this->tabl_data as
$row
) {
37
$content .=
'<tr>'
;
38
foreach
($row as $cell) {
39
$content .=
'<td>'
.$cell.
'</td>'
;
40
}
41
$content .=
'</tr>'
;
42
}
43
return
$content.
'</table>'
;
44
}
45
}
46
?>
SimpleExcel\Writer\HTMLWriter\saveString
saveString()
Get document content as string.
Definition:
HTMLWriter.php:34
SimpleExcel\Writer\HTMLWriter
Definition:
HTMLWriter.php:11
$row
$row
Definition:
examplelayouts.sql.php:26
SimpleExcel\Writer
Definition:
BaseWriter.php:3
SimpleExcel\Writer\HTMLWriter\$content_type
$content_type
Definition:
HTMLWriter.php:19
SimpleExcel\Writer\HTMLWriter\$file_extension
$file_extension
Definition:
HTMLWriter.php:27
SimpleExcel\Writer\IWriter
define writer interface
Definition:
IWriter.php:13
SimpleExcel\Writer\BaseWriter
Definition:
BaseWriter.php:11
Modules
DataCollection
libs
SimpleExcel
Writer
HTMLWriter.php
Generated on Wed Mar 27 2024 19:00:56 for ILIAS by
1.8.13 (using
Doxyfile
)