Ejemplo n.º 1
0
function displayMessages()
{
    $engine = EngineAPI::singleton();
    if (is_empty($engine->errorStack)) {
        return FALSE;
    }
    return '<section><header><h1>Results</h1></header>' . errorHandle::prettyPrint() . '</section>';
}
Ejemplo n.º 2
0
    }
    if (objects::add("2", $submitArray) !== TRUE) {
        print "error adding object " . $submitArray['idno'];
        print "<pre>";
        var_dump($submitArray);
        print "</pre>";
        errorHandle::prettyPrint();
        exit;
    }
    // add the item to the pec project
    if (objects::addProject(localvars::get("newObjectID"), "1") === FALSE) {
        print "error -- add Project: \n";
        print "<pre>";
        var_dump($submitArray);
        print "</pre>";
        errorHandle::prettyPrint();
        exit;
    }
    mfcs::$engine->cleanPost['MYSQL'] = array();
    mfcs::$engine->cleanPost['HTML'] = array();
    mfcs::$engine->cleanPost['RAW'] = array();
    // make certain we don't have any data cache
    unset($submitArray);
}
print "Records: <pre>";
var_dump(count($records));
print "</pre>";
$total = 0;
foreach ($metadata as $table => $records) {
    print "{$table}: <pre>";
    var_dump(count($records));