ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Class ilAssExcelFormatHelper. More...
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) | ||||||||||
Set cell value.
| ||||||||||
getStringEscaping () | ||||||||||
setStringEscaping ($stringEscaping) | ||||||||||
![]() | ||||||||||
__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) | ||||||||||
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=0, $pRow=1) | ||||||||||
Get cell coordinate (e.g. More... | ||||||||||
Data Fields | |
const | escapeString = true |
![]() | |
const | FORMAT_XML = "Excel2007" |
const | FORMAT_BIFF = "Excel5" |
Protected Member Functions | |
prepareString ($a_value) | |
![]() | |
prepareValue ($a_value) | |
Prepare value for cell. More... | |
prepareDateValue (ilDateTime $a_value) | |
prepareBooleanValue ($a_value) | |
prepareString ($a_value) | |
setDateFormat (PHPExcel_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 | |
![]() | |
$workbook | |
$type | |
Class ilAssExcelFormatHelper.
Definition at line 10 of file class.ilAssExcelFormatHelper.php.
ilAssExcelFormatHelper::__construct | ( | ) |
ilAssExcelFormatHelper constructor.
Reimplemented from ilExcel.
Definition at line 20 of file class.ilAssExcelFormatHelper.php.
ilAssExcelFormatHelper::getStringEscaping | ( | ) |
Definition at line 96 of file class.ilAssExcelFormatHelper.php.
References $stringEscaping.
|
protected |
string | $a_value |
Reimplemented from ilExcel.
Definition at line 81 of file class.ilAssExcelFormatHelper.php.
ilAssExcelFormatHelper::setCell | ( | $a_row, | |
$a_col, | |||
$a_value | |||
) |
Set cell value.
int | $a_row | |
int | $a_col | |
mixed | $a_value |
Reimplemented from ilExcel.
Definition at line 59 of file class.ilAssExcelFormatHelper.php.
References ilExcel\prepareValue(), and PHPExcel_Cell_DataType\TYPE_STRING.
ilAssExcelFormatHelper::setCellByCoordinates | ( | $a_coords, | |
$a_value | |||
) |
Set cell value by coordinates.
string | $a_coords | |
mixed | $a_value |
Reimplemented from ilExcel.
Definition at line 39 of file class.ilAssExcelFormatHelper.php.
References ilExcel\prepareValue(), and PHPExcel_Cell_DataType\TYPE_STRING.
Referenced by setFormattedExcelTitle().
ilAssExcelFormatHelper::setFormattedExcelTitle | ( | $coordinates, | |
$value | |||
) |
string | $coordinates | |
string | $value |
Definition at line 29 of file class.ilAssExcelFormatHelper.php.
References EXCEL_BACKGROUND_COLOR, ilExcel\setBold(), setCellByCoordinates(), and ilExcel\setColors().
ilAssExcelFormatHelper::setStringEscaping | ( | $stringEscaping | ) |
int | $stringEscaping |
Definition at line 104 of file class.ilAssExcelFormatHelper.php.
References $stringEscaping.
|
protected |
Definition at line 15 of file class.ilAssExcelFormatHelper.php.
Referenced by getStringEscaping(), and setStringEscaping().
const ilAssExcelFormatHelper::escapeString = true |
Definition at line 13 of file class.ilAssExcelFormatHelper.php.