Merge pull request #379 from frost-nzcr4/ft-camelcase
Change the getter/setter for zeroHeight to camel case
This commit is contained in:
commit
23479fdde2
|
@ -757,7 +757,7 @@ class PHPExcel_Reader_Excel2007 extends PHPExcel_Reader_Abstract implements PHPE
|
||||||
}
|
}
|
||||||
if (isset($xmlSheet->sheetFormatPr['zeroHeight']) &&
|
if (isset($xmlSheet->sheetFormatPr['zeroHeight']) &&
|
||||||
((string)$xmlSheet->sheetFormatPr['zeroHeight'] == '1')) {
|
((string)$xmlSheet->sheetFormatPr['zeroHeight'] == '1')) {
|
||||||
$docSheet->getDefaultRowDimension()->setzeroHeight(true);
|
$docSheet->getDefaultRowDimension()->setZeroHeight(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -145,7 +145,7 @@ class PHPExcel_Worksheet_RowDimension
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function getzeroHeight() {
|
public function getZeroHeight() {
|
||||||
return $this->_zeroHeight;
|
return $this->_zeroHeight;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -155,7 +155,7 @@ class PHPExcel_Worksheet_RowDimension
|
||||||
* @param bool $pValue
|
* @param bool $pValue
|
||||||
* @return PHPExcel_Worksheet_RowDimension
|
* @return PHPExcel_Worksheet_RowDimension
|
||||||
*/
|
*/
|
||||||
public function setzeroHeight($pValue = false) {
|
public function setZeroHeight($pValue = false) {
|
||||||
$this->_zeroHeight = $pValue;
|
$this->_zeroHeight = $pValue;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
|
@ -326,8 +326,8 @@ class PHPExcel_Writer_Excel2007_Worksheet extends PHPExcel_Writer_Excel2007_Writ
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set Zero Height row
|
// Set Zero Height row
|
||||||
if ((string)$pSheet->getDefaultRowDimension()->getzeroHeight() == '1' ||
|
if ((string)$pSheet->getDefaultRowDimension()->getZeroHeight() == '1' ||
|
||||||
strtolower((string)$pSheet->getDefaultRowDimension()->getzeroHeight()) == 'true' ) {
|
strtolower((string)$pSheet->getDefaultRowDimension()->getZeroHeight()) == 'true' ) {
|
||||||
$objWriter->writeAttribute('zeroHeight', '1');
|
$objWriter->writeAttribute('zeroHeight', '1');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue