public function PHPExcel_Reader_Excel2007_Theme::__clone in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel2007/Theme.php \PHPExcel_Reader_Excel2007_Theme::__clone()
* Implement PHP __clone to create a deep clone, not just a shallow copy.
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Reader/ Excel2007/ Theme.php, line 114
Class
- PHPExcel_Reader_Excel2007_Theme
- PHPExcel_Reader_Excel2007_Theme
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;
}
}
}