示例#1
0
    print_r($bra5ServiceGet->getResult());
} else {
    print_r($bra5ServiceGet->getLastError());
}
/*******************************
 * Example for Bra5ServiceSearch
 */
$bra5ServiceSearch = new Bra5ServiceSearch();
// sample call for Bra5ServiceSearch::searchDocument()
if ($bra5ServiceSearch->searchDocument(new Bra5StructSearchDocument())) {
    print_r($bra5ServiceSearch->getResult());
} else {
    print_r($bra5ServiceSearch->getLastError());
}
// sample call for Bra5ServiceSearch::searchAndGetDocuments()
if ($bra5ServiceSearch->searchAndGetDocuments(new Bra5StructSearchAndGetDocuments())) {
    print_r($bra5ServiceSearch->getResult());
} else {
    print_r($bra5ServiceSearch->getLastError());
}
/*******************************
 * Example for Bra5ServiceCreate
 */
$bra5ServiceCreate = new Bra5ServiceCreate();
// sample call for Bra5ServiceCreate::createDocument()
if ($bra5ServiceCreate->createDocument(new Bra5StructCreateDocument())) {
    print_r($bra5ServiceCreate->getResult());
} else {
    print_r($bra5ServiceCreate->getLastError());
}
/*******************************
示例#2
0
        _debug_array($bra5ServiceGet->getLastError());
        $GLOBALS['phpgw']->common->phpgw_exit();
    }
}
$bra5ServiceSearch = new Bra5ServiceSearch();
/*
	if($bra5ServiceSearch->searchDocument(new Bra5StructSearchDocument($secKey,$_baseclassname = 'Eiendomsarkiver',$classname,$_where = "Byggnr = {$bygningsnr}",$_maxhits = 2)))
	{
//		_debug_array($bra5ServiceSearch->getResult());
	}
	else
	{
		print_r($bra5ServiceSearch->getLastError());
	}
*/
if ($bra5ServiceSearch->searchAndGetDocuments(new Bra5StructSearchAndGetDocuments($secKey, $_baseclassname = 'Eiendomsarkiver', $classname, $_where = "Byggnr = {$bygningsnr}", $_maxhits = -1))) {
    //		_debug_array($bra5ServiceSearch->getResult());die();
    $_result = $bra5ServiceSearch->getResult()->getsearchAndGetDocumentsResult()->getExtendedDocument()->getsearchAndGetDocumentsResult()->ExtendedDocument;
}
$html = <<<HTML
\t<table>
HTML;
$bra5ServiceLogout = new Bra5ServiceLogout();
$bra5ServiceLogout->Logout(new Bra5StructLogout($secKey));
if (!$_result) {
    echo "<H2> Ingen treff </H2>";
    $GLOBALS['phpgw']->common->phpgw_exit();
}
$skip_field = array('ASTA_Signatur', 'Adresse', 'Sakstype', 'Saksnr', 'Tiltakstype', 'Tiltaksart', 'Gradering', 'Skjerming', 'BrukerID', 'Team');
$html .= '<th>';
$html .= 'Last ned';