public function PHPExcel_Style_Color::getStyleArray in Loft Data Grids 7.2
Same name and namespace in other branches
- 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Color.php \PHPExcel_Style_Color::getStyleArray()
* Build style array from subcomponents * *
Parameters
array $array: * @return array
3 calls to PHPExcel_Style_Color::getStyleArray()
- PHPExcel_Style_Color::applyFromArray in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Style/ Color.php - * Apply styles from array * * <code> * $objPHPExcel->getActiveSheet()->getStyle('B2')->getFont()->getColor()->applyFromArray( array('rgb' => '808080') ); * </code> * *
- PHPExcel_Style_Color::setARGB in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Style/ Color.php - * Set ARGB * *
- PHPExcel_Style_Color::setRGB in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Style/ Color.php - * Set RGB * *
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Style/ Color.php, line 132
Class
- PHPExcel_Style_Color
- PHPExcel_Style_Color
Code
public function getStyleArray($array) {
switch ($this->_parentPropertyName) {
case '_endColor':
$key = 'endcolor';
break;
case '_color':
$key = 'color';
break;
case '_startColor':
$key = 'startcolor';
break;
}
return $this->_parent
->getStyleArray(array(
$key => $array,
));
}