PHPExcel_Cell

# Class: PHPExcel_Cell_DataType Source Location: /PHPExcel/Cell/DataType.php
### Class Overview
PHPExcel_Cell_DataType #### Author(s): #### Copyright: Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel) | ### Variables $_errorCodes | ### Constants TYPE_BOOL TYPE_ERROR TYPE_FORMULA TYPE_INLINE TYPE_NULL TYPE_NUMERIC TYPE_STRING | ### Methods checkErrorCode checkString dataTypeForValue getErrorCodes
### Class Details [line 48] PHPExcel_Cell_DataType PHPExcel_Cell_DataType #### Tags:
copyright: | Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel)
[ Top ] ### Class Variables #### static $_errorCodes = array('#NULL!' => 0, '#DIV/0!' => 1, '#VALUE!' => 2, '#REF!' => 3, '#NAME?' => 4, '#NUM!' => 5, '#N/A' => 6) [line 64] List of error codes List of error codes #### Tags:
access: | private
Type: | array
[ Top ] ### Class Methods ### static method checkErrorCode [line 114]
`static string checkErrorCode( [mixed $pValue = null])`
Check a value that it is a valid error code Check a value that it is a valid error code #### Tags:
return: | Sanitized value
access: | public
#### Parameters:
mixed | $pValue | Value to sanitize to an Excel error code
[ Top ] ### static method checkString [line 92]
`static mixed checkString( [mixed $pValue = null])`
Check a string that it satisfies Excel requirements Check a string that it satisfies Excel requirements #### Tags:
return: | Sanitized value
access: | public
#### Parameters:
mixed | $pValue | Value to sanitize to an Excel string
[ Top ] ### static method dataTypeForValue [line 82]
`static int dataTypeForValue( [mixed $pValue = null])`
DataType for value DataType for value #### Tags:
deprecated: | Replaced by PHPExcel_Cell_IValueBinder infrastructure
access: | public
#### Parameters:
mixed | $pValue |
[ Top ] ### static method getErrorCodes [line 71]
`static array getErrorCodes( )`
Get list of error codes Get list of error codes #### Tags:
access: | public
[ Top ] ### Class Constants #### TYPE_BOOL = 'b' [line 54] [ Top ] #### TYPE_ERROR = 'e' [line 57] [ Top ] #### TYPE_FORMULA = 'f' [line 52] [ Top ] #### TYPE_INLINE = 'inlineStr' [line 56] [ Top ] #### TYPE_NULL = 's' [line 55] [ Top ] #### TYPE_NUMERIC = 'n' [line 53] [ Top ] #### TYPE_STRING = 's' [line 51] [ Top ] Documentation generated on Mon, 11 Jan 2010 08:07:37 +0100 by phpDocumentor 1.4.1