ILIAS  release_4-4 Revision
SimpleExcel\Writer\JSONWriter Class Reference
+ Inheritance diagram for SimpleExcel\Writer\JSONWriter:
+ Collaboration diagram for SimpleExcel\Writer\JSONWriter:

Public Member Functions

 saveString ()
 Get document content as string. More...
 
- Public Member Functions inherited from SimpleExcel\Writer\BaseWriter
 __construct ()
 
 addRow ($values)
 Adding row data to table. More...
 
 saveString ()
 Get document content as string. More...
 
 saveFile ($filename, $target=NULL)
 Export the document. More...
 
 setData ($values)
 Set tabular data. More...
 

Protected Attributes

 $content_type = 'application/json'
 
 $file_extension = 'json'
 
- Protected Attributes inherited from SimpleExcel\Writer\BaseWriter
 $tabl_data
 
 $content_type = 'text'
 
 $file_extension = 'txt'
 

Detailed Description

Definition at line 11 of file JSONWriter.php.

Member Function Documentation

◆ saveString()

SimpleExcel\Writer\JSONWriter::saveString ( )

Get document content as string.

Returns
string Content of document

Implements SimpleExcel\Writer\IWriter.

Definition at line 34 of file JSONWriter.php.

34  {
35  return json_encode($this->tabl_data);
36  }

Field Documentation

◆ $content_type

SimpleExcel\Writer\JSONWriter::$content_type = 'application/json'
protected

Definition at line 19 of file JSONWriter.php.

◆ $file_extension

SimpleExcel\Writer\JSONWriter::$file_extension = 'json'
protected

Definition at line 27 of file JSONWriter.php.


The documentation for this class was generated from the following file: