Esempio n. 1
0
        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 < count($alist); $i++) {
        ?>
	<artifact id="<?php 
        echo $alist[$i]->getID();
        ?>
">
		<submitted_by><?php 
        echo $alist[$i]->getSubmittedUnixName();
        ?>