ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
StringValueBinder.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
PhpOffice\PhpSpreadsheet\Cell
;
4
5
use
PhpOffice\PhpSpreadsheet\Shared\StringHelper
;
6
7
class
StringValueBinder
implements
IValueBinder
8
{
17
public
function
bindValue
(
Cell
$cell, $value)
18
{
19
// sanitize UTF-8 strings
20
if
(is_string($value)) {
21
$value =
StringHelper::sanitizeUTF8
($value);
22
}
23
24
$cell->
setValueExplicit
((
string
) $value,
DataType::TYPE_STRING
);
25
26
// Done!
27
return
true
;
28
}
29
}
PhpOffice\PhpSpreadsheet\Cell\Cell\setValueExplicit
setValueExplicit($pValue, $pDataType)
Set the value for a cell, with the explicit data type passed to the method (bypassing any use of the ...
Definition:
Cell.php:195
PhpOffice\PhpSpreadsheet\Shared\StringHelper\sanitizeUTF8
static sanitizeUTF8($value)
Try to sanitize UTF8, stripping invalid byte sequences.
Definition:
StringHelper.php:337
PhpOffice\PhpSpreadsheet\Cell\DataType\TYPE_STRING
const TYPE_STRING
Definition:
DataType.php:12
StringHelper
PhpOffice\PhpSpreadsheet\Cell\StringValueBinder
Definition:
StringValueBinder.php:7
PhpOffice\PhpSpreadsheet\Cell\StringValueBinder\bindValue
bindValue(Cell $cell, $value)
Bind value to a cell.
Definition:
StringValueBinder.php:17
PhpOffice\PhpSpreadsheet\Cell\Cell
Definition:
Cell.php:13
php
PhpOffice\PhpSpreadsheet\Cell
Definition:
AddressHelper.php:3
PhpOffice\PhpSpreadsheet\Cell\IValueBinder
Definition:
IValueBinder.php:5
libs
composer
vendor
phpoffice
phpspreadsheet
src
PhpSpreadsheet
Cell
StringValueBinder.php
Generated on Thu Mar 13 2025 19:01:23 for ILIAS by
1.8.13 (using
Doxyfile
)