mirror of
https://github.com/retailcrm/PHPExcel.git
synced 2024-11-26 07:16:03 +03:00
Minor tweaks to cell constructor
This commit is contained in:
parent
280620a753
commit
66b9ffa8ac
@ -88,7 +88,7 @@ class PHPExcel_Cell
|
|||||||
*
|
*
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
private $_xfIndex;
|
private $_xfIndex = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Attributes of the formula
|
* Attributes of the formula
|
||||||
@ -113,8 +113,6 @@ class PHPExcel_Cell
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function attach(PHPExcel_CachedObjectStorage_CacheBase $parent) {
|
public function attach(PHPExcel_CachedObjectStorage_CacheBase $parent) {
|
||||||
|
|
||||||
|
|
||||||
$this->_parent = $parent;
|
$this->_parent = $parent;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -140,16 +138,11 @@ class PHPExcel_Cell
|
|||||||
if ($pDataType == PHPExcel_Cell_DataType::TYPE_STRING2)
|
if ($pDataType == PHPExcel_Cell_DataType::TYPE_STRING2)
|
||||||
$pDataType = PHPExcel_Cell_DataType::TYPE_STRING;
|
$pDataType = PHPExcel_Cell_DataType::TYPE_STRING;
|
||||||
$this->_dataType = $pDataType;
|
$this->_dataType = $pDataType;
|
||||||
} else {
|
} elseif (!self::getValueBinder()->bindValue($this, $pValue)) {
|
||||||
if (!self::getValueBinder()->bindValue($this, $pValue)) {
|
|
||||||
throw new PHPExcel_Exception("Value could not be bound to cell.");
|
throw new PHPExcel_Exception("Value could not be bound to cell.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// set default index to cellXf
|
|
||||||
$this->_xfIndex = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get cell coordinate column
|
* Get cell coordinate column
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user