19 require_once
'Modules/Test/classes/inc.AssessmentConstants.php';
55 if (is_string($a_value) && !is_numeric($a_value)) {
56 $this->workbook->getActiveSheet()->setCellValueExplicit(
59 \PhpOffice\PhpSpreadsheet\Cell\DataType::TYPE_STRING,
63 parent::setCellByCoordinates($a_coords, $a_value);
70 public function setCell($a_row, $a_col, $a_value, $datatype = null): void
72 if (is_string($a_value) && !is_numeric($a_value)) {
73 $this->workbook->getActiveSheet()->setCellValueExplicitByColumnAndRow(
77 \PhpOffice\PhpSpreadsheet\Cell\DataType::TYPE_STRING,
81 parent::setCell($a_row, $a_col, $a_value);
91 if ($this->stringEscaping ==
false) {
94 return strip_tags($a_value);
const EXCEL_BACKGROUND_COLOR
setBold(string $a_coords)
Set cell(s) to bold.
__construct(Container $dic, ilPlugin $plugin)
setColors(string $a_coords, string $a_background, string $a_font=null)
Set cell(s) colors.
prepareValue($a_value)
Prepare value for cell.