function reset()
{
foreach (array_keys(get_object_vars($this)) as $key) {
if (isset($avoid_cleaning[$key])) {
continue;
}
$this->{$key} = NULL;
}
$this->generator = new Haanga_Generator_PHP();
$this->blocks = array();
$this->cycle = array();
}