|
ILIAS
release_8 Revision v8.24
|
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) | |||||||
Set cell value by coordinates.
| |||||||
| 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 () | |||||||
| 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 |
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.
Reimplemented from ilExcel.
Definition at line 34 of file class.ilAssExcelFormatHelper.php.
References ILIAS\GlobalScreen\Provider\__construct().
Here is the call graph for this function:| ilAssExcelFormatHelper::getStringEscaping | ( | ) |
Definition at line 101 of file class.ilAssExcelFormatHelper.php.
References $stringEscaping.
Referenced by assClozeTest\setExportDetailsXLS(), and assTextQuestion\setExportDetailsXLS().
Here is the caller graph for this function:
|
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 assClozeTest\setExportDetailsXLS(), assErrorText\setExportDetailsXLS(), assFileUpload\setExportDetailsXLS(), assFormulaQuestion\setExportDetailsXLS(), assImagemapQuestion\setExportDetailsXLS(), assKprimChoice\setExportDetailsXLS(), assLongMenu\setExportDetailsXLS(), assMatchingQuestion\setExportDetailsXLS(), assMultipleChoice\setExportDetailsXLS(), assNumeric\setExportDetailsXLS(), assOrderingHorizontal\setExportDetailsXLS(), assOrderingQuestion\setExportDetailsXLS(), assSingleChoice\setExportDetailsXLS(), assTextQuestion\setExportDetailsXLS(), and assTextSubset\setExportDetailsXLS().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAssExcelFormatHelper::setCellByCoordinates | ( | $a_coords, | |
| $a_value | |||
| ) |
Set cell value by coordinates.
| string | $a_coords | Coordinate of the cell, eg: 'A1' |
| mixed | $a_value |
Reimplemented from ilExcel.
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\setExportDetailsXLS().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAssExcelFormatHelper::setStringEscaping | ( | $stringEscaping | ) |
| int | $stringEscaping |
Definition at line 109 of file class.ilAssExcelFormatHelper.php.
References $stringEscaping.
Referenced by assClozeTest\setExportDetailsXLS(), and assTextQuestion\setExportDetailsXLS().
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.