class PHPExcel_Cell_DataType

PHPExcelCellDataType

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

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 string
dataTypeForValue(mixed $pValue = null) deprecated

DataType for value

static mixed
checkString(mixed $pValue = null)

Check a string that it satisfies Excel requirements

static string
checkErrorCode(mixed $pValue = null)

Check a value that it is a valid error code

Details

at line 69
static array getErrorCodes()

Get list of error codes

Return Value

array

at line 81
static string dataTypeForValue(mixed $pValue = null) deprecated

deprecated Replaced by PHPExcel_Cell_IValueBinder infrastructure, will be removed in version 1.8.0

DataType for value

Parameters

mixed $pValue

Return Value

string

at line 92
static mixed checkString(mixed $pValue = null)

Check a string that it satisfies Excel requirements

Parameters

mixed $pValue Value to sanitize to an Excel string

Return Value

mixed Sanitized value

at line 114
static string checkErrorCode(mixed $pValue = null)

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