|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilAssExcelFormatHelper. 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) | |||||||||||||||
Set cell value.
PhpOffice\PhpSpreadsheet\Exception More... | |||||||||||||||
| getStringEscaping () | |||||||||||||||
| setStringEscaping ($stringEscaping) | |||||||||||||||
Public Member Functions inherited from ilExcel | |||||||||||||||
| __construct () | |||||||||||||||
| Constructor. More... | |||||||||||||||
| loadFromFile ($filename) | |||||||||||||||
| Loads a spreadsheet from file. More... | |||||||||||||||
| getValidFormats () | |||||||||||||||
| Get valid file formats. More... | |||||||||||||||
| setFormat ($a_format) | |||||||||||||||
| Set file format. More... | |||||||||||||||
| addSheet ($a_name, $a_activate=true) | |||||||||||||||
| Add sheet. More... | |||||||||||||||
| setActiveSheet ($a_index) | |||||||||||||||
| Set active sheet. More... | |||||||||||||||
| 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 ($a_row, $a_col, $a_value, $a_datatype=null) | |||||||||||||||
| Set cell value. More... | |||||||||||||||
| setCellArray (array $a_values, $a_top_left="A1", $a_null_value=null) | |||||||||||||||
| Set cell values from array. More... | |||||||||||||||
| getCell ($a_row, $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 ($a_col) | |||||||||||||||
| Get column "name" from number. More... | |||||||||||||||
| sendToClient ($a_file_name) | |||||||||||||||
| Send workbook to client. More... | |||||||||||||||
| writeToFile ($a_file) | |||||||||||||||
| Save workbook to file. More... | |||||||||||||||
| writeToTmpFile () | |||||||||||||||
| setBold ($a_coords) | |||||||||||||||
| Set cell(s) to bold. More... | |||||||||||||||
| setColors ($a_coords, $a_background, $a_font=null) | |||||||||||||||
| Set cell(s) colors. More... | |||||||||||||||
| setBorders ($a_coords, $a_top, $a_right=false, $a_bottom=false, $a_left=false) | |||||||||||||||
| Toggle cell(s) borders. More... | |||||||||||||||
| getCoordByColumnAndRow ($pColumn=1, $pRow=1) | |||||||||||||||
| Get cell coordinate (e.g. More... | |||||||||||||||
| addLink ($a_row, $a_column, $a_path) | |||||||||||||||
| columnIndexAdjustment (int $column) | |||||||||||||||
| Adjustment needed because of migration PHPExcel to PhpSpreadsheet. More... | |||||||||||||||
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 ($a_value) | |
| prepareString ($a_value) | |
| setDateFormat (Cell $a_cell, $a_value) | |
| Set date format. More... | |
| setGlobalAutoSize () | |
| Set all existing columns on all sheets to autosize. More... | |
| prepareStorage ($a_file_name) | |
| Prepare workbook for storage/delivery. More... | |
Protected Attributes | |
| $stringEscaping = self::escapeString | |
Protected Attributes inherited from ilExcel | |
| $lng | |
| $workbook | |
| $type | |
Class ilAssExcelFormatHelper.
Definition at line 10 of file class.ilAssExcelFormatHelper.php.
| ilAssExcelFormatHelper::__construct | ( | ) |
ilAssExcelFormatHelper constructor.
Reimplemented from ilExcel.
Definition at line 19 of file class.ilAssExcelFormatHelper.php.
| ilAssExcelFormatHelper::getStringEscaping | ( | ) |
Definition at line 86 of file class.ilAssExcelFormatHelper.php.
References $stringEscaping.
|
protected |
| string | $a_value |
Reimplemented from ilExcel.
Definition at line 74 of file class.ilAssExcelFormatHelper.php.
| ilAssExcelFormatHelper::setCell | ( | $a_row, | |
| $a_col, | |||
| $a_value, | |||
$datatype = null |
|||
| ) |
Set cell value.
| int | $a_row | |
| int | $a_col | |
| mixed | $a_value | |
| null | $a_datatype |
PhpOffice\PhpSpreadsheet\Exception
Reimplemented from ilExcel.
Definition at line 55 of file class.ilAssExcelFormatHelper.php.
References ilExcel\prepareValue().
Here is the call graph for this function:| ilAssExcelFormatHelper::setCellByCoordinates | ( | $a_coords, | |
| $a_value | |||
| ) |
Set cell value by coordinates.
| string | $a_coords | |
| mixed | $a_value |
Reimplemented from ilExcel.
Definition at line 38 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 28 of file class.ilAssExcelFormatHelper.php.
References EXCEL_BACKGROUND_COLOR, ilExcel\setBold(), setCellByCoordinates(), and ilExcel\setColors().
Here is the call graph for this function:| ilAssExcelFormatHelper::setStringEscaping | ( | $stringEscaping | ) |
| int | $stringEscaping |
Definition at line 94 of file class.ilAssExcelFormatHelper.php.
References $stringEscaping.
|
protected |
Definition at line 14 of file class.ilAssExcelFormatHelper.php.
Referenced by getStringEscaping(), and setStringEscaping().
| const ilAssExcelFormatHelper::escapeString = true |
Definition at line 12 of file class.ilAssExcelFormatHelper.php.