You are here

private function PHPExcel_Chart_GridLines::_setShadowProperiesMapValues in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Chart/GridLines.php \PHPExcel_Chart_GridLines::_setShadowProperiesMapValues()

Set Shadow Properties Values

Parameters

array $properties_map:

* $reference:

Return value

PHPExcel_Chart_GridLines

1 call to PHPExcel_Chart_GridLines::_setShadowProperiesMapValues()
PHPExcel_Chart_GridLines::_setShadowPresetsProperties in vendor/phpoffice/phpexcel/Classes/PHPExcel/Chart/GridLines.php
Set Shadow Presets Properties

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Chart/GridLines.php, line 329

Class

PHPExcel_Chart_GridLines
Created by PhpStorm. User: Wiktor Trzonkowski Date: 7/2/14 Time: 2:36 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;
}