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
62 parent::setCellByCoordinates($a_coords, $a_value);
69 public function setCell($a_row, $a_col, $a_value, $datatype = null): void
71 if (is_string($a_value) && !is_numeric($a_value)) {
73 $this->workbook->getActiveSheet()->setCellValueExplicit(
76 \PhpOffice\PhpSpreadsheet\Cell\DataType::TYPE_STRING
79 parent::setCell($a_row, $a_col, $a_value);
89 if ($this->stringEscaping ==
false) {
92 return strip_tags($a_value);
const EXCEL_BACKGROUND_COLOR
setBold(string $a_coords)
Set cell(s) to bold.
getCoordByColumnAndRow(int $pColumn=1, int $pRow=1)
Get cell coordinate (e.g.
setColors(string $a_coords, string $a_background, string $a_font=null)
Set cell(s) colors.
prepareValue($a_value)
Prepare value for cell.