You are here

public function PHPExcel_Worksheet_Drawing::__clone in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/Drawing.php \PHPExcel_Worksheet_Drawing::__clone()

* Implement PHP __clone to create a deep clone, not just a shallow copy.

Overrides PHPExcel_Worksheet_BaseDrawing::__clone

1 method overrides PHPExcel_Worksheet_Drawing::__clone()
PHPExcel_Worksheet_HeaderFooterDrawing::__clone in vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/HeaderFooterDrawing.php
* Implement PHP __clone to create a deep clone, not just a shallow copy.

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/Drawing.php, line 138

Class

PHPExcel_Worksheet_Drawing
PHPExcel_Worksheet_Drawing

Code

public function __clone() {
  $vars = get_object_vars($this);
  foreach ($vars as $key => $value) {
    if (is_object($value)) {
      $this->{$key} = clone $value;
    }
    else {
      $this->{$key} = $value;
    }
  }
}