/*=====================================================================*\
|| ###################################################################
|| # Bugdar
-|| # Copyright ©2002-2007 Blue Static
+|| # Copyright (c)2004-2009 Blue Static
|| #
|| # This program is free software; you can redistribute it and/or modify
|| # it under the terms of the GNU General Public License as published by
'editattach'
);
-define('SVN', '$Id$');
$focus['showreport'] = 'focus';
require_once('./includes/class_logging.php');
$notif = new NotificationCenter();
-$notif->set_bug_data($bug);
+$notif->setBugData($bug);
// ###################################################################
$obsoletes = $input->inputClean('obsoletes', TYPE_UINT);
- $notif->send_new_attachment_notice($attachapi->values, $obsoletes, $attachapi->insertid);
+ $notif->sendNewAttachmentNotice($attachapi->values, $obsoletes, $attachapi->insertid);
// mark obsoletes
if (is_array($obsoletes) AND sizeof($obsoletes) > 0)
foreach ($obsoletes as $attachmentid)
{
$log = new Logging;
- $log->set_bugid($bug['bugid']);
- $log->set_attachmentid($attachmentid);
- $log->add_data(true, array('obsolete' => 0), array('obsolete'), false, 'attachment');
- $log->add_data(false, array('obsolete' => 1), array('obsolete'), false, 'attachment');
- $log->update_history();
+ $log->setBugId($bug['bugid']);
+ $log->setAttachmentId($attachmentid);
+ $log->addData(true, array('obsolete' => 0), array('obsolete'), false, 'attachment');
+ $log->addData(false, array('obsolete' => 1), array('obsolete'), false, 'attachment');
+ $log->updateHistory();
}
}
$comment->set('dateline', $attachapi->values['dateline']);
$comment->insert();
- $notif->send_new_comment_notice($comment->values);
+ $notif->sendNewCommentNotice($comment->values);
}
// update the last post data
$message->errorPermission();
}
- $attachapi->delete();
+ $attachapi->remove();
$message->redirect(T('The attachment was successfully deleted.'), "showreport.php?bugid=$bug[bugid]");
}
else
{
$log = new Logging();
- $log->set_bugid($bug['bugid']);
- $log->set_attachmentid($input->in['attachmentid']);
+ $log->setBugId($bug['bugid']);
+ $log->setAttachmentId($input->in['attachmentid']);
$attachapi->fetch();
- $log->add_data(true, $attachapi->record, array('attachment'), true, 'attachment');
+ $log->addData(true, $attachapi->record, array('attachment'), true, 'attachment');
$attachapi->set('description', $input->in['description']);
$attachapi->set('obsolete', $input->in['obsolete']);
$attachapi->update();
- $log->add_data(false, $attachapi->values, array('attachment'), true, 'attachment');
+ $log->addData(false, $attachapi->values, array('attachment'), true, 'attachment');
- $log->update_history();
+ $log->updateHistory();
$message->redirect(T('The attachment was successfully modified.'), "showreport.php?bugid=$bug[bugid]");
}
$tpl->evaluate()->flush();
}
-/*=====================================================================*\
-|| ###################################################################
-|| # $HeadURL$
-|| # $Id$
-|| ###################################################################
-\*=====================================================================*/
?>
\ No newline at end of file