\PHPExcel_Cell_DataType

PHPExcel_Cell_DataType

Copyright (c) 2006 - 2015 PHPExcel

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

Summary

Methods
Properties
Constants
getErrorCodes()
dataTypeForValue()
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

dataTypeForValue()

dataTypeForValue(mixed  $pValue = null) : string

DataType for value

Parameters

mixed $pValue

Returns

string

checkString()

checkString(  $pValue = null) : mixed

Check a string that it satisfies Excel requirements

Parameters

$pValue

Returns

mixed —

Sanitized value

checkErrorCode()

checkErrorCode(  $pValue = null) : string

Check a value that it is a valid error code

Parameters

$pValue

Returns

string —

Sanitized value