ILIAS
release_8 Revision v8.23
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
__construct () | |
ilAssExcelFormatHelper constructor. More... | |
setFormattedExcelTitle ($coordinates, $value) | |
setCellByCoordinates ($a_coords, $a_value) | |
setCell ($a_row, $a_col, $a_value, $datatype=null) | |
getStringEscaping () | |
setStringEscaping ($stringEscaping) | |
![]() | |
__construct () | |
loadFromFile (string $filename) | |
Loads a spreadsheet from file. More... | |
getValidFormats () | |
Get valid file formats. More... | |
setFormat (string $a_format) | |
Set file format. More... | |
addSheet (string $a_name, bool $a_activate=true) | |
Add sheet. More... | |
setActiveSheet (int $a_index) | |
getSheetCount () | |
Returns number of sheets. More... | |
getSheetTitle () | |
Return the current sheet title. More... | |
setCellByCoordinates ($a_coords, $a_value) | |
Set cell value by coordinates. More... | |
setCell (int $a_row, int $a_col, $a_value, ?string $a_datatype=null) | |
Set cell value. More... | |
setCellArray (array $a_values, string $a_top_left="A1", $a_null_value=null) | |
Set cell values from array. More... | |
getCell (int $a_row, int $a_col) | |
Returns the value of a cell. More... | |
getSheetAsArray () | |
Returns the active sheet as an array. More... | |
getColumnCount () | |
Returns the number of columns the sheet contains. More... | |
getColumnCoord (int $a_col) | |
Get column "name" from number. More... | |
sendToClient (string $a_file_name) | |
Send workbook to client. More... | |
writeToFile (string $a_file) | |
Save workbook to file. More... | |
writeToTmpFile () | |
setBold (string $a_coords) | |
Set cell(s) to bold. More... | |
setColors (string $a_coords, string $a_background, string $a_font=null) | |
Set cell(s) colors. More... | |
setBorders (string $a_coords, bool $a_top, bool $a_right=false, bool $a_bottom=false, bool $a_left=false) | |
Toggle cell(s) borders. More... | |
getCoordByColumnAndRow (int $pColumn=1, int $pRow=1) | |
Get cell coordinate (e.g. More... | |
addLink (int $a_row, int $a_column, string $a_path) | |
columnIndexAdjustment (int $column) | |
Adjustment needed because of migration PHPExcel to PhpSpreadsheet. More... | |
mergeCells (string $coordinatesRange) | |
Data Fields | |
const | escapeString = true |
![]() | |
const | FORMAT_XML = "Xlsx" |
const | FORMAT_BIFF = "Xls" |
Protected Member Functions | |
prepareString ($a_value) | |
![]() | |
prepareValue ($a_value) | |
Prepare value for cell. More... | |
prepareDateValue (ilDateTime $a_value) | |
prepareBooleanValue (bool $a_value) | |
prepareString (string $a_value) | |
setDateFormat (Cell $a_cell, $a_value) | |
Set date format of cell. More... | |
setGlobalAutoSize () | |
Set all existing columns on all sheets to autosize. More... | |
prepareStorage (string $a_file_name) | |
Prepare workbook for storage/delivery. More... | |
Protected Attributes | |
$stringEscaping = self::escapeString | |
![]() | |
string | $format |
ilLanguage | $lng |
Spreadsheet | $workbook |
string | $type |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilAssExcelFormatHelper
Definition at line 25 of file class.ilAssExcelFormatHelper.php.
ilAssExcelFormatHelper::__construct | ( | ) |
ilAssExcelFormatHelper constructor.
Definition at line 34 of file class.ilAssExcelFormatHelper.php.
References ILIAS\GlobalScreen\Provider\__construct().
ilAssExcelFormatHelper::getStringEscaping | ( | ) |
Definition at line 101 of file class.ilAssExcelFormatHelper.php.
References $stringEscaping.
Referenced by assTextQuestion\setExportDetailsXLS(), and assClozeTest\setExportDetailsXLS().
|
protected |
string | $a_value |
Definition at line 89 of file class.ilAssExcelFormatHelper.php.
ilAssExcelFormatHelper::setCell | ( | $a_row, | |
$a_col, | |||
$a_value, | |||
$datatype = null |
|||
) |
Definition at line 70 of file class.ilAssExcelFormatHelper.php.
References ilExcel\prepareValue().
Referenced by assOrderingHorizontal\setExportDetailsXLS(), assErrorText\setExportDetailsXLS(), assNumeric\setExportDetailsXLS(), assTextSubset\setExportDetailsXLS(), assLongMenu\setExportDetailsXLS(), assTextQuestion\setExportDetailsXLS(), assImagemapQuestion\setExportDetailsXLS(), assFileUpload\setExportDetailsXLS(), assOrderingQuestion\setExportDetailsXLS(), assKprimChoice\setExportDetailsXLS(), assSingleChoice\setExportDetailsXLS(), assMultipleChoice\setExportDetailsXLS(), assFormulaQuestion\setExportDetailsXLS(), assMatchingQuestion\setExportDetailsXLS(), and assClozeTest\setExportDetailsXLS().
ilAssExcelFormatHelper::setCellByCoordinates | ( | $a_coords, | |
$a_value | |||
) |
Definition at line 53 of file class.ilAssExcelFormatHelper.php.
References ilExcel\prepareValue().
Referenced by setFormattedExcelTitle().
ilAssExcelFormatHelper::setFormattedExcelTitle | ( | $coordinates, | |
$value | |||
) |
string | $coordinates | |
string | $value |
Definition at line 43 of file class.ilAssExcelFormatHelper.php.
References EXCEL_BACKGROUND_COLOR, ilExcel\setBold(), setCellByCoordinates(), and ilExcel\setColors().
Referenced by assQuestion\setExportDetailsXLS().
ilAssExcelFormatHelper::setStringEscaping | ( | $stringEscaping | ) |
int | $stringEscaping |
Definition at line 109 of file class.ilAssExcelFormatHelper.php.
References $stringEscaping.
Referenced by assTextQuestion\setExportDetailsXLS(), and assClozeTest\setExportDetailsXLS().
|
protected |
Definition at line 29 of file class.ilAssExcelFormatHelper.php.
Referenced by getStringEscaping(), and setStringEscaping().
const ilAssExcelFormatHelper::escapeString = true |
Definition at line 27 of file class.ilAssExcelFormatHelper.php.