/**
  * Delete the given object.
  * @param BRANCH $obj
  * @access private
  */
 public function commit($obj)
 {
     if ($this->value_for('purge')) {
         $options = new PURGE_OPTIONS();
         $options->sub_history_item_publication_state = false;
         $obj->purge($options);
     } else {
         $obj->delete();
     }
 }
 /**
  * Delete the given object.
  * @param BRANCH $obj
  * @access private
  */
 public function commit($obj)
 {
     $options = new PURGE_OPTIONS();
     $options->sub_history_item_publication_state = $this->value_for('sub_history_item_publication_state');
     $obj->purge($options);
 }