Example #1
0
 * Examples
 */
/******************************
 * Example for Bra5ServiceLogin
 */
$bra5ServiceLogin = new Bra5ServiceLogin();
// sample call for Bra5ServiceLogin::Login()
if ($bra5ServiceLogin->Login(new Bra5StructLogin())) {
    print_r($bra5ServiceLogin->getResult());
} else {
    print_r($bra5ServiceLogin->getLastError());
}
/*******************************
 * Example for Bra5ServiceLogout
 */
$bra5ServiceLogout = new Bra5ServiceLogout();
// sample call for Bra5ServiceLogout::Logout()
if ($bra5ServiceLogout->Logout(new Bra5StructLogout())) {
    print_r($bra5ServiceLogout->getResult());
} else {
    print_r($bra5ServiceLogout->getLastError());
}
/****************************
 * Example for Bra5ServiceGet
 */
$bra5ServiceGet = new Bra5ServiceGet();
// sample call for Bra5ServiceGet::getProductionLines()
if ($bra5ServiceGet->getProductionLines(new Bra5StructGetProductionLines())) {
    print_r($bra5ServiceGet->getResult());
} else {
    print_r($bra5ServiceGet->getLastError());
Example #2
0
	{
//		_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';
$html . '</th>';
$location_id = phpgw::get_var('location_id', 'int');
$section = phpgw::get_var('section', 'string');
$base_url = $GLOBALS['phpgw']->link('/property/inc/soap_client/bra5/soap.php', array('domain' => $_GET['domain'], 'location_id' => $location_id, 'section' => $section));
foreach ($_result[0]->getAttributes()->Attribute as $attribute) {
    if (in_array($attribute->Name, $skip_field)) {
        continue;