Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250711) (9addea9f0ac)
PhpOffice\PhpSpreadsheet\Cell\DataType Class Reference

Static Public Member Functions

static checkErrorCode (mixed $value)
 Check a value that it is a valid error code.
 
static checkString (null|RichText|string $textValue)
 Check a string that it satisfies Excel requirements.
 
static getErrorCodes ()
 Get list of error codes.
 

Public Attributes

static const MAX_STRING_LENGTH = 32767
 
const TYPE_BOOL = 'b'
 
const TYPE_ERROR = 'e'
 
const TYPE_FORMULA = 'f'
 
const TYPE_INLINE = 'inlineStr'
 
const TYPE_ISO_DATE = 'd'
 
const TYPE_NULL = 'null'
 
const TYPE_NUMERIC = 'n'
 
const TYPE_STRING = 's'
 
const TYPE_STRING2 = 'str'
 

Member Function Documentation

◆ checkErrorCode()

static PhpOffice\PhpSpreadsheet\Cell\DataType::checkErrorCode ( mixed $value)
static

Check a value that it is a valid error code.

Parameters
mixed$valueValue to sanitize to an Excel error code
Return values
stringSanitized value

◆ checkString()

static PhpOffice\PhpSpreadsheet\Cell\DataType::checkString ( null|RichText|string $textValue)
static

Check a string that it satisfies Excel requirements.

Parameters
null | RichText | string$textValueValue to sanitize to an Excel string
Return values
RichText|stringSanitized value

◆ getErrorCodes()

static PhpOffice\PhpSpreadsheet\Cell\DataType::getErrorCodes ( )
static

Get list of error codes.

Return values
array<string,int>

The documentation for this class was generated from the following file: