public function PHPExcel_Style_Border::setBorderStyle in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Border.php \PHPExcel_Style_Border::setBorderStyle()
* Set Border style * *
Parameters
string|boolean $pValue: * When passing a boolean, FALSE equates PHPExcel_Style_Border::BORDER_NONE * and TRUE to PHPExcel_Style_Border::BORDER_MEDIUM * @return PHPExcel_Style_Border
1 call to PHPExcel_Style_Border::setBorderStyle()
- PHPExcel_Style_Border::applyFromArray in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Style/ Border.php - * Apply styles from array * * <code> * $objPHPExcel->getActiveSheet()->getStyle('B2')->getBorders()->getTop()->applyFromArray( * array( * 'style' => PHPExcel_Style_Border::BORDER_DASHDOT, …
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Style/ Border.php, line 233
Class
- PHPExcel_Style_Border
- PHPExcel_Style_Border
Code
public function setBorderStyle($pValue = PHPExcel_Style_Border::BORDER_NONE) {
if (empty($pValue)) {
$pValue = PHPExcel_Style_Border::BORDER_NONE;
}
elseif (is_bool($pValue) && $pValue) {
$pValue = PHPExcel_Style_Border::BORDER_MEDIUM;
}
if ($this->_isSupervisor) {
$styleArray = $this
->getStyleArray(array(
'style' => $pValue,
));
$this
->getActiveSheet()
->getStyle($this
->getSelectedCells())
->applyFromArray($styleArray);
}
else {
$this->_borderStyle = $pValue;
}
return $this;
}