ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5
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 ?>
saveString()
Get document content as string.
Definition: HTMLWriter.php:34
define writer interface
Definition: IWriter.php:13