forked from plribeiro3000/dotproject-audit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathartefact.class.php
More file actions
32 lines (29 loc) · 733 Bytes
/
artefact.class.php
File metadata and controls
32 lines (29 loc) · 733 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
if (!defined('DP_BASE_DIR')) {
die('You should not access this file directly.');
}
/**
* Artefact Class
*/
class Artefact extends CDpObject {
var $project_id = NULL;
var $artefact_id = NULL;
var $artefact_name = NULL;
var $artefact_short_description = NULL;
var $artefact_description = NULL;
var $artefact_phase = NULL;
var $artefact_status = NULL;
function Artefact() {
$this->CDpObject('artefacts', 'artefact_id');
}
function remove($artefact_id){
$q = new DBQuery();
$q->setDelete('artefacts');
$q->addWhere('artefact_id = ' . $artefact_id);
if (!$q->exec())
return db_error();
else
return null;
}
}
?>