99 public function __construct($isSupervisor = FALSE, $isConditional = FALSE)
102 parent::__construct($isSupervisor);
105 if ($isConditional) {
106 $this->_fillType = NULL;
113 $this->_startColor->bindParent($this,
'_startColor');
114 $this->_endColor->bindParent($this,
'_endColor');
126 return $this->_parent->getSharedComponent()->getFill();
137 return array(
'fill' => $array);
163 if (is_array($pStyles)) {
164 if ($this->_isSupervisor) {
167 if (array_key_exists(
'type', $pStyles)) {
170 if (array_key_exists(
'rotation', $pStyles)) {
173 if (array_key_exists(
'startcolor', $pStyles)) {
174 $this->
getStartColor()->applyFromArray($pStyles[
'startcolor']);
176 if (array_key_exists(
'endcolor', $pStyles)) {
177 $this->
getEndColor()->applyFromArray($pStyles[
'endcolor']);
179 if (array_key_exists(
'color', $pStyles)) {
195 if ($this->_isSupervisor) {
208 if ($this->_isSupervisor) {
212 $this->_fillType = $pValue;
223 if ($this->_isSupervisor) {
236 if ($this->_isSupervisor) {
240 $this->_rotation = $pValue;
263 $color = $pValue->getIsSupervisor() ? $pValue->getSharedComponent() : $pValue;
265 if ($this->_isSupervisor) {
266 $styleArray = $this->
getStartColor()->getStyleArray(
array(
'argb' => $color->getARGB()));
269 $this->_startColor = $color;
292 $color = $pValue->getIsSupervisor() ? $pValue->getSharedComponent() : $pValue;
294 if ($this->_isSupervisor) {
295 $styleArray = $this->
getEndColor()->getStyleArray(
array(
'argb' => $color->getARGB()));
298 $this->_endColor = $color;
309 if ($this->_isSupervisor) {
setStartColor(PHPExcel_Style_Color $pValue=null)
Set Start Color.
const FILL_PATTERN_LIGHTHORIZONTAL
__construct($isSupervisor=FALSE, $isConditional=FALSE)
Create a new PHPExcel_Style_Fill.
setRotation($pValue=0)
Set Rotation.
applyFromArray($pStyles=null)
Apply styles from array.
getStartColor()
Get Start Color.
const FILL_PATTERN_LIGHTGRAY
getStyleArray($array)
Build style array from subcomponents.
const FILL_PATTERN_DARKGRID
const FILL_PATTERN_DARKHORIZONTAL
getSelectedCells()
Get the currently active cell coordinate in currently active sheet.
setEndColor(PHPExcel_Style_Color $pValue=null)
Set End Color.
const FILL_PATTERN_LIGHTTRELLIS
getSharedComponent()
Get the shared style component for the currently active cell in currently active sheet.
const FILL_PATTERN_LIGHTDOWN
const FILL_PATTERN_MEDIUMGRAY
getRotation()
Get Rotation.
const FILL_PATTERN_DARKDOWN
const FILL_PATTERN_GRAY125
const FILL_PATTERN_DARKTRELLIS
const FILL_PATTERN_LIGHTVERTICAL
Create styles array
The data for the language used.
getEndColor()
Get End Color.
const FILL_PATTERN_GRAY0625
getFillType()
Get Fill Type.
setFillType($pValue=PHPExcel_Style_Fill::FILL_NONE)
Set Fill Type.
const FILL_PATTERN_LIGHTGRID
const FILL_PATTERN_DARKVERTICAL
const FILL_PATTERN_DARKGRAY
const FILL_PATTERN_LIGHTUP
getActiveSheet()
Get the currently active sheet.
const FILL_PATTERN_DARKUP
getHashCode()
Get hash code.
const FILL_GRADIENT_LINEAR