You are here

private function PHPExcel_Chart_Axis::_setShadowProperiesMapValues in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Chart/Axis.php \PHPExcel_Chart_Axis::_setShadowProperiesMapValues()

Set Shadow Properties from Maped Values

Parameters

array $properties_map:

* $reference:

Return value

PHPExcel_Chart_Axis

1 call to PHPExcel_Chart_Axis::_setShadowProperiesMapValues()
PHPExcel_Chart_Axis::_setShadowPresetsProperties in vendor/phpoffice/phpexcel/Classes/PHPExcel/Chart/Axis.php
Set Shadow Color

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Chart/Axis.php, line 402

Class

PHPExcel_Chart_Axis
Created by PhpStorm. User: Wiktor Trzonkowski Date: 6/17/14 Time: 12:11 PM

Code

private function _setShadowProperiesMapValues(array $properties_map, &$reference = NULL) {
  $base_reference = $reference;
  foreach ($properties_map as $property_key => $property_val) {
    if (is_array($property_val)) {
      if ($reference === NULL) {
        $reference =& $this->_shadow_properties[$property_key];
      }
      else {
        $reference =& $reference[$property_key];
      }
      $this
        ->_setShadowProperiesMapValues($property_val, $reference);
    }
    else {
      if ($base_reference === NULL) {
        $this->_shadow_properties[$property_key] = $property_val;
      }
      else {
        $reference[$property_key] = $property_val;
      }
    }
  }
  return $this;
}