34    define(
'PHPEXCEL_ROOT', dirname(__FILE__) . 
'/../../');
 
   35    require(PHPEXCEL_ROOT . 
'PHPExcel/Autoloader.php');
 
   58        if (is_string($value)) {
 
   63        $dataType = parent::dataTypeForValue($value);
 
   83            if (preg_match(
'/^([+-]?)\s*([0-9]+)\s?\/\s*([0-9]+)$/', $value, $matches)) {
 
   85                $value = $matches[2] / $matches[3];
 
   86                if ($matches[1] == 
'-') $value = 0 - $value;
 
   90                    ->getNumberFormat()->setFormatCode( 
'??/??' );
 
   92            } elseif (preg_match(
'/^([+-]?)([0-9]*) +([0-9]*)\s?\/\s*([0-9]*)$/', $value, $matches)) {
 
   94                $value = $matches[2] + ($matches[3] / $matches[4]);
 
   95                if ($matches[1] == 
'-') $value = 0 - $value;
 
   99                    ->getNumberFormat()->setFormatCode( 
'# ??/??' );
 
  104            if (preg_match(
'/^\-?[0-9]*\.?[0-9]*\s?\%$/', $value)) {
 
  106                $value = (float) str_replace(
'%', 
'', $value) / 100;
 
  118            if (preg_match(
'/^'.preg_quote($currencyCode).
' *(\d{1,3}('.preg_quote($thousandsSeparator).
'\d{3})*|(\d+))('.preg_quote($decimalSeparator).
'\d{2})?$/', $value)) {
 
  120                $value = (float) trim(str_replace(array($currencyCode, $thousandsSeparator, $decimalSeparator), array(
'', 
'', 
'.'), $value));
 
  124                    ->getNumberFormat()->setFormatCode(
 
  128            } elseif (preg_match(
'/^\$ *(\d{1,3}(\,\d{3})*|(\d+))(\.\d{2})?$/', $value)) {
 
  130                $value = (float) trim(str_replace(array(
'$',
','), 
'', $value));
 
  139            if (preg_match(
'/^(\d|[0-1]\d|2[0-3]):[0-5]\d$/', $value)) {
 
  141                list(
$h, 
$m) = explode(
':', $value);
 
  142                $days = 
$h / 24 + 
$m / 1440;
 
  151            if (preg_match(
'/^(\d|[0-1]\d|2[0-3]):[0-5]\d:[0-5]\d$/', $value)) {
 
  153                list(
$h, 
$m, 
$s) = explode(
':', $value);
 
  154                $days = 
$h / 24 + 
$m / 1440 + 
$s / 86400;
 
  168                if (strpos($value, 
':') !== 
false) {
 
  169                    $formatCode = 
'yyyy-mm-dd h:mm';
 
  171                    $formatCode = 
'yyyy-mm-dd';
 
  174                    ->getNumberFormat()->setFormatCode($formatCode);
 
  179            if (strpos($value, 
"\n") !== FALSE) {
 
  184                    ->getAlignment()->setWrapText(TRUE);
 
  190        return parent::bindValue($cell, $value);
 
An exception for terminatinating execution or to throw for unit testing.
static getFALSE()
Return the locale-specific translation of FALSE.
static getTRUE()
Return the locale-specific translation of TRUE.
const CALCULATION_REGEXP_NUMBER
Constants
bindValue(PHPExcel_Cell $cell, $value=null)
Bind value to a cell.
setValueExplicit($pValue=NULL, $pDataType=PHPExcel_Cell_DataType::TYPE_STRING)
Set the value for a cell, with the explicit data type passed to the method (bypassing any use of the ...
getWorksheet()
Get parent worksheet.
getCoordinate()
Get cell coordinate.
static stringToExcel($dateValue='')
Convert a date/time string to Excel time.
static getDecimalSeparator()
Get the decimal separator.
static SanitizeUTF8($value)
Try to sanitize UTF8, stripping invalid byte sequences.
static getThousandsSeparator()
Get the thousands separator.
for( $i=6;$i< 13;$i++) for($i=1; $i< 13; $i++) $d
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'