class DataType (View source)

Constants

TYPE_STRING2

TYPE_STRING

TYPE_FORMULA

TYPE_NUMERIC

TYPE_BOOL

TYPE_NULL

TYPE_INLINE

TYPE_ERROR

Methods

static array
getErrorCodes()

Get list of error codes.

static null|RichText|string
checkString(null|RichText|string $pValue)

Check a string that it satisfies Excel requirements.

static string
checkErrorCode(mixed $pValue)

Check a value that it is a valid error code.

Details

static array getErrorCodes()

Get list of error codes.

Return Value

array

static null|RichText|string checkString(null|RichText|string $pValue)

Check a string that it satisfies Excel requirements.

Parameters

null|RichText|string $pValue Value to sanitize to an Excel string

Return Value

null|RichText|string Sanitized value

static string checkErrorCode(mixed $pValue)

Check a value that it is a valid error code.

Parameters

mixed $pValue Value to sanitize to an Excel error code

Return Value

string Sanitized value