[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [15767] property: braarkiv
From: |
sigurdne |
Subject: |
[Fmsystem-commits] [15767] property: braarkiv |
Date: |
Fri, 30 Sep 2016 09:09:29 +0000 (UTC) |
Revision: 15767
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=15767
Author: sigurdne
Date: 2016-09-30 09:09:29 +0000 (Fri, 30 Sep 2016)
Log Message:
-----------
property: braarkiv
Modified Paths:
--------------
trunk/property/inc/soap_client/bra5/soap.php
Modified: trunk/property/inc/soap_client/bra5/soap.php
===================================================================
--- trunk/property/inc/soap_client/bra5/soap.php 2016-09-30 07:25:24 UTC
(rev 15766)
+++ trunk/property/inc/soap_client/bra5/soap.php 2016-09-30 09:09:29 UTC
(rev 15767)
@@ -76,12 +76,27 @@
$location_id = phpgw::get_var('location_id', 'int');
$section = phpgw::get_var('section', 'string');
- $bygningsnr = (int)phpgw::get_var('bygningsnr', 'int');
$fileid = phpgw::get_var('fileid', 'string');
- if (!$fileid && !$bygningsnr)
+ $where_parameter = phpgw::get_var('where_parameter', 'string');
+
+ $_where = '';
+ if (!$fileid)
{
- $GLOBALS['phpgw_info']['message']['errors'][] =
"{$system_name}::Bygningsnr ikke angitt som innparameter";
+ if ($where_parameter)
+ {
+ $_where = "{$where_parameter} = ".
phpgw::get_var($where_parameter);
+ }
+ else
+ {
+ $bygningsnr = (int)phpgw::get_var('bygningsnr', 'int');
+ $_where = "Byggnr = {$bygningsnr}";
+ }
+
+ if (!$_where)
+ {
+ $GLOBALS['phpgw_info']['message']['errors'][] =
"{$system_name}::Mangler innparameter for avgrensing av listesøk";
+ }
}
$c = CreateObject('admin.soconfig', $location_id);
@@ -175,7 +190,7 @@
}
$bra5ServiceSearch = new Bra5ServiceSearch();
/*
- if($bra5ServiceSearch->searchDocument(new
Bra5StructSearchDocument($secKey,$_baseclassname =
'Eiendomsarkiver',$classname,$_where = "Byggnr = {$bygningsnr}",$_maxhits = 2)))
+ if($bra5ServiceSearch->searchDocument(new
Bra5StructSearchDocument($secKey,$_baseclassname =
'Eiendomsarkiver',$classname,$_where,$_maxhits = 2)))
{
// _debug_array($bra5ServiceSearch->getResult());
}
@@ -184,7 +199,7 @@
print_r($bra5ServiceSearch->getLastError());
}
*/
- if ($bra5ServiceSearch->searchAndGetDocuments(new
Bra5StructSearchAndGetDocuments($secKey, $_baseclassname = 'Eiendomsarkiver',
$classname, $_where = "Byggnr = {$bygningsnr}", $_maxhits = -1)))
+ if ($bra5ServiceSearch->searchAndGetDocuments(new
Bra5StructSearchAndGetDocuments($secKey, $_baseclassname = 'Eiendomsarkiver',
$classname, $_where, $_maxhits = -1)))
{
// _debug_array($bra5ServiceSearch->getResult());die();
$_result =
$bra5ServiceSearch->getResult()->getsearchAndGetDocumentsResult()->getExtendedDocument()->getsearchAndGetDocumentsResult()->ExtendedDocument;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [15767] property: braarkiv,
sigurdne <=