\PhpOffice\PhpSpreadsheet\CellDataType

Summary

Methods
Properties
Constants
getErrorCodes()
checkString()
checkErrorCode()
No public properties found
TYPE_STRING2
TYPE_STRING
TYPE_FORMULA
TYPE_NUMERIC
TYPE_BOOL
TYPE_NULL
TYPE_INLINE
TYPE_ERROR
No protected methods found
No protected properties found
N/A
No private methods found
$errorCodes
N/A

Constants

TYPE_STRING2

TYPE_STRING2 = 'str'

TYPE_STRING

TYPE_STRING = 's'

TYPE_FORMULA

TYPE_FORMULA = 'f'

TYPE_NUMERIC

TYPE_NUMERIC = 'n'

TYPE_BOOL

TYPE_BOOL = 'b'

TYPE_NULL

TYPE_NULL = 'null'

TYPE_INLINE

TYPE_INLINE = 'inlineStr'

TYPE_ERROR

TYPE_ERROR = 'e'

Properties

$errorCodes

$errorCodes : array

List of error codes.

Type

array

Methods

getErrorCodes()

getErrorCodes() : array

Get list of error codes.

Returns

array

checkErrorCode()

checkErrorCode(mixed  $pValue) : string

Check a value that it is a valid error code.

Parameters

mixed $pValue

Value to sanitize to an Excel error code

Returns

string —

Sanitized value