|
ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Inheritance diagram for ilAssExcelFormatHelper:
Collaboration diagram for ilAssExcelFormatHelper: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) | |
Public Member Functions inherited from ilExcel | |
| __construct () | |
| loadFromFile (string $filename) | |
| Loads a spreadsheet from file. More... | |
| getValidFormats () | |
| 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 |
Data Fields inherited from ilExcel | |
| const | FORMAT_XML = 'Xlsx' |
| const | FORMAT_BIFF = 'Xls' |
Protected Member Functions | |
| prepareString ($a_value) | |
Protected Member Functions inherited from ilExcel | |
| 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 | |
Protected Attributes inherited from ilExcel | |
| 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\MetaData\Repository\Validation\Data\__construct().
Here is the call graph for this function:| ilAssExcelFormatHelper::getStringEscaping | ( | ) |
Definition at line 99 of file class.ilAssExcelFormatHelper.php.
References $stringEscaping.
Referenced by assTextQuestion\setExportDetailsXLSX(), and assClozeTest\setExportDetailsXLSX().
Here is the caller graph for this function:
|
protected |
| string | $a_value |
Definition at line 87 of file class.ilAssExcelFormatHelper.php.
| ilAssExcelFormatHelper::setCell | ( | $a_row, | |
| $a_col, | |||
| $a_value, | |||
$datatype = null |
|||
| ) |
Definition at line 69 of file class.ilAssExcelFormatHelper.php.
References ilExcel\getCoordByColumnAndRow(), and ilExcel\prepareValue().
Referenced by assOrderingHorizontal\setExportDetailsXLSX(), assErrorText\setExportDetailsXLSX(), assNumeric\setExportDetailsXLSX(), assTextSubset\setExportDetailsXLSX(), assTextQuestion\setExportDetailsXLSX(), assLongMenu\setExportDetailsXLSX(), assImagemapQuestion\setExportDetailsXLSX(), assFileUpload\setExportDetailsXLSX(), assKprimChoice\setExportDetailsXLSX(), assMultipleChoice\setExportDetailsXLSX(), assSingleChoice\setExportDetailsXLSX(), assOrderingQuestion\setExportDetailsXLSX(), assMatchingQuestion\setExportDetailsXLSX(), assFormulaQuestion\setExportDetailsXLSX(), and assClozeTest\setExportDetailsXLSX().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAssExcelFormatHelper::setCellByCoordinates | ( | $a_coords, | |
| $a_value | |||
| ) |
Definition at line 53 of file class.ilAssExcelFormatHelper.php.
References ilExcel\prepareValue().
Referenced by setFormattedExcelTitle().
Here is the call graph for this function:
Here is the caller graph for this function:| 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\setExportDetailsXLSX().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAssExcelFormatHelper::setStringEscaping | ( | $stringEscaping | ) |
| int | $stringEscaping |
Definition at line 107 of file class.ilAssExcelFormatHelper.php.
References $stringEscaping.
Referenced by assTextQuestion\setExportDetailsXLSX(), and assClozeTest\setExportDetailsXLSX().
Here is the caller graph for this function:
|
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.