public function PHPExcel_Worksheet_BaseDrawing::__clone in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/BaseDrawing.php \PHPExcel_Worksheet_BaseDrawing::__clone()
* Implement PHP __clone to create a deep clone, not just a shallow copy.
2 methods override PHPExcel_Worksheet_BaseDrawing::__clone()
- PHPExcel_Worksheet_Drawing::__clone in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Worksheet/ Drawing.php - * Implement PHP __clone to create a deep clone, not just a shallow copy.
- PHPExcel_Worksheet_MemoryDrawing::__clone in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Worksheet/ MemoryDrawing.php - * Implement PHP __clone to create a deep clone, not just a shallow copy.
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Worksheet/ BaseDrawing.php, line 479
Class
- PHPExcel_Worksheet_BaseDrawing
- PHPExcel_Worksheet_BaseDrawing
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;
}
}
}