PHPExcel  1.3.0.stable.18
PHPExcel_Cell_DataType Class Reference

Static Public Member Functions

static getErrorCodes ()
static dataTypeForValue ($pValue=null)
static checkString ($pValue=null)
static checkErrorCode ($pValue=null)

Data Fields

const TYPE_STRING2 = 'str'
const TYPE_STRING = 's'
const TYPE_FORMULA = 'f'
const TYPE_NUMERIC = 'n'
const TYPE_BOOL = 'b'
const TYPE_NULL = 's'
const TYPE_INLINE = 'inlineStr'
const TYPE_ERROR = 'e'

Detailed Description

Definition at line 36 of file DataType.php.


Member Function Documentation

static PHPExcel_Cell_DataType::checkErrorCode ( pValue = null) [static]

Check a value that it is a valid error code

Parameters:
mixedValue to sanitize to an Excel error code
Returns:
string Sanitized value

Definition at line 103 of file DataType.php.

Referenced by PHPExcel_Cell\setValueExplicit().

static PHPExcel_Cell_DataType::checkString ( pValue = null) [static]

Check a string that it satisfies Excel requirements

Parameters:
mixedValue to sanitize to an Excel string
Returns:
mixed Sanitized value

Definition at line 81 of file DataType.php.

References PHPExcel_Shared_String\Substring().

Referenced by PHPExcel_Cell\setValueExplicit().

static PHPExcel_Cell_DataType::dataTypeForValue ( pValue = null) [static]

DataType for value

Deprecated:
Replaced by PHPExcel_Cell_IValueBinder infrastructure
Parameters:
mixed$pValue
Returns:
int

Definition at line 71 of file DataType.php.

Referenced by PHPExcel_Cell_DefaultValueBinder\bindValue().

Get list of error codes

Returns:
array

Definition at line 60 of file DataType.php.

Referenced by PHPExcel_Cell_DefaultValueBinder\dataTypeForValue().


Field Documentation

Definition at line 45 of file DataType.php.

Referenced by PHPExcel_Cell\setValueExplicit().


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations