*/
require_once('../env.inc.php');
require_once $gfcommon.'include/pre.php';
require_once $gfcommon.'tracker/Artifact.class.php';
require_once $gfcommon.'tracker/Artifacts.class.php';
require_once $gfcommon.'tracker/ArtifactFile.class.php';
require_once $gfcommon.'tracker/ArtifactType.class.php';
require_once $gfcommon.'tracker/ArtifactCanned.class.php';
function beginDocument() {
header("Content-Type: text/plain");
echo ''."\n";
}
function displayError($errorMessage) {
echo ''.$errorMessage.''."\n";
}
function endDocument() {
echo '';
exit();
}
function endOnError($errorMessage) {
displayError($errorMessage);
endDocument();
}
?>
isError()) {
endOnError($group->getErrorMessage());
}
//
// Add checks to see if they have perms to view this
//
if (!session_check_perm ('tracker', $atid)) {
endOnError('Permission Denied');
$errors = true;
}
//
// Create the ArtifactType object
//
$ath = new ArtifactType($group,$atid);
if (!$ath || !is_object($ath)) {
endOnError('ArtifactType could not be created');
} elseif ($ath->isError()) {
endOnError($ath->getErrorMessage());
}
//
// Create the Artifacts object
//
$artifacts = new Artifacts($ath);
if (!$artifacts || !is_object($ath)) {
endOnError('Artifacts could not be created');
}
if ($artifacts->isError()) {
endOnError($artifacts->getErrorMessage());
}
//
// Loop through each artifact object and show the results
//
if (!$alist = $artifacts->getArtifacts($offset)) {
displayError($artifacts->getErrorMessage());
$errors = true;
}
if ($errors) {
endDocument();
}
for ($i=0; $i
getSubmittedUnixName(); ?>
getOpenDate() ); ?>
getID(); ?>
getAssignedRealName(); ?>
getPriority(); ?>
getStatusName(); ?>
getResolutionName(); ?>
getSummary(); ?>
getDetails(); ?>
getMessages();
$rows = db_numrows($result);
if ($rows > 0) {
?>
-
getFiles();
$count=count($file_list);
if ($count > 0) {
?>
getID(); ?>
getName(); ?>
getDescription(); ?>
getSize(); ?>
getType(); ?>
getDate(); ?>
getSubmittedBy(); ?>
getHistory();
$rows = db_numrows($result);
if ($rows > 0) {
?>
-