mirror of
https://github.com/retailcrm/PHPExcel.git
synced 2024-11-30 01:06:03 +03:00
Minor performance tweak
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@74697 2327b42d-5241-43d6-9e2a-de5ac946f064
This commit is contained in:
parent
c7539c3d4c
commit
cdb94cfb1e
@ -857,8 +857,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
|
|||||||
*/
|
*/
|
||||||
public function setCellValue($pCoordinate = 'A1', $pValue = null, $returnCell = false)
|
public function setCellValue($pCoordinate = 'A1', $pValue = null, $returnCell = false)
|
||||||
{
|
{
|
||||||
$cell = $this->getCell($pCoordinate);
|
$cell = $this->getCell($pCoordinate)->setValue($pValue);
|
||||||
$cell->setValue($pValue);
|
|
||||||
|
|
||||||
if ($returnCell) {
|
if ($returnCell) {
|
||||||
return $cell;
|
return $cell;
|
||||||
@ -877,8 +876,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
|
|||||||
*/
|
*/
|
||||||
public function setCellValueByColumnAndRow($pColumn = 0, $pRow = 1, $pValue = null, $returnCell = false)
|
public function setCellValueByColumnAndRow($pColumn = 0, $pRow = 1, $pValue = null, $returnCell = false)
|
||||||
{
|
{
|
||||||
$cell = $this->getCell(PHPExcel_Cell::stringFromColumnIndex($pColumn) . $pRow);
|
$cell = $this->getCell(PHPExcel_Cell::stringFromColumnIndex($pColumn) . $pRow)->setValue($pValue);
|
||||||
$cell->setValue($pValue);
|
|
||||||
|
|
||||||
if ($returnCell) {
|
if ($returnCell) {
|
||||||
return $cell;
|
return $cell;
|
||||||
|
Loading…
Reference in New Issue
Block a user