You are here

public function PHPExcel_Style::setQuotePrefix in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Style.php \PHPExcel_Style::setQuotePrefix()

Set quote prefix

Parameters

boolean $pValue:

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Style.php, line 609

Class

PHPExcel_Style
PHPExcel_Style

Code

public function setQuotePrefix($pValue) {
  if ($pValue == '') {
    $pValue = false;
  }
  if ($this->_isSupervisor) {
    $styleArray = array(
      'quotePrefix' => $pValue,
    );
    $this
      ->getActiveSheet()
      ->getStyle($this
      ->getSelectedCells())
      ->applyFromArray($styleArray);
  }
  else {
    $this->_quotePrefix = (bool) $pValue;
  }
  return $this;
}