function __construct($details)
 {
     if (defined('PERCH_UNDO_BUFFER')) {
         $this->history_items = (int) PERCH_UNDO_BUFFER;
     }
     return parent::__construct($details);
 }
 function __construct($details)
 {
     if (defined('PERCH_CLEAN_RESOURCES')) {
         $this->clean_resources = PERCH_CLEAN_RESOURCES;
     }
     return parent::__construct($details);
 }