public function PurgePurgerBundle::__sleep in Purge 7.2
Override for parents sleep to make sure we include the bundled objects.
Overrides Purge::__sleep
File
- includes/
purge.class.inc, line 760 - Contains all class and interface definitions for Purge.
Class
- PurgePurgerBundle
- Class definition for basic bundles.
Code
public function __sleep() {
// First let call the parent function.
$return_properties = parent::__sleep();
// Add each type to the item array.
foreach ($this->item as $type_name => $items) {
if (!isset($return_properties[$type_name])) {
$return_properties[] = $type_name;
}
}
return $return_properties;
}