public function PHPExcel_Style_Supervisor::__clone in Loft Data Grids 7.2
Same name and namespace in other branches
- 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Supervisor.php \PHPExcel_Style_Supervisor::__clone()
* Implement PHP __clone to create a deep clone, not just a shallow copy.
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Style/ Supervisor.php, line 122
Class
- PHPExcel_Style_Supervisor
- PHPExcel_Style_Supervisor
Code
public function __clone() {
$vars = get_object_vars($this);
foreach ($vars as $key => $value) {
if (is_object($value) && $key != '_parent') {
$this->{$key} = clone $value;
}
else {
$this->{$key} = $value;
}
}
}