fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [9838] proprty: exportfilter


From: Sigurd Nes
Subject: [Fmsystem-commits] [9838] proprty: exportfilter
Date: Wed, 08 Aug 2012 13:42:57 +0000

Revision: 9838
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=9838
Author:   sigurdne
Date:     2012-08-08 13:42:56 +0000 (Wed, 08 Aug 2012)
Log Message:
-----------
proprty: exportfilter

Modified Paths:
--------------
    trunk/property/inc/export/default/El_anlegg_LRS

Modified: trunk/property/inc/export/default/El_anlegg_LRS
===================================================================
--- trunk/property/inc/export/default/El_anlegg_LRS     2012-08-08 07:22:55 UTC 
(rev 9837)
+++ trunk/property/inc/export/default/El_anlegg_LRS     2012-08-08 13:42:56 UTC 
(rev 9838)
@@ -64,9 +64,10 @@
                        $PeriodTo = 209912;
 
                        $doc = new DOMDocument('1.0', 'utf-8');
-                       $domElement = $doc->createElement('AttributeList');
+                       $domElement = $doc->createElement('AttributeValueList');
+                       
$domElement->setAttribute('xmlns:xsi','http://www.w3.org/2001/XMLSchema-instance');
+                       
$domElement->setAttribute('xsi:noNamespaceSchemaLocation','..\XmlSchema\AttributeValueList.xsd');
 
-
                        while ($this->db->next_record())
                        {
                                        $Attribute = array
@@ -80,99 +81,64 @@
                                                'PeriodTo'              => 
$PeriodTo,
                                                'Status'                => 'N',
                                                'Percentage'    => '100',
-                                               'RelationList'  => array
+                                               'RelationValueList'     => array
                                                (
                                                        'RelationValue' => array
                                                        (
                                                                array
                                                                (
-                                                                       'ID'    
=> 'A3',
-                                                                       'Name'  
=> 'FIRMA',
-                                                                       'Value' 
=> 'BB',
-                                                                       
'Description'   => '',
-                                                                       
'PeriodFrom'    => '',
-                                                                       
'PeriodTo'      => '',
-                                                                       
'Status'        => '',
+                                                                       'ID'    
                => 'A3',
+                                                                       'Name'  
                => 'FIRMA',
+                                                                       'Value' 
                => 'BB',
                                                                        
'Percentage'    => '100'
                                                                ),
                                                                array
                                                                (
-                                                                       'ID'    
=> 'A0',
-                                                                       'Name'  
=> 'Art',
-                                                                       'Value' 
=> '12304121',
-                                                                       
'Description'   => '',
-                                                                       
'PeriodFrom'    => '',
-                                                                       
'PeriodTo'      => '',
-                                                                       
'Status'        => '',
+                                                                       'ID'    
                => 'A0',
+                                                                       'Name'  
                => 'Art',
+                                                                       'Value' 
                => '12304121',
                                                                        
'Percentage'    => '100'
                                                                ),
                                                                array
                                                                (
-                                                                       'ID'    
=> 'C1',
-                                                                       'Name'  
=> 'Ansvar',
-                                                                       'Value' 
=> '45',
-                                                                       
'Description'   => '',
-                                                                       
'PeriodFrom'    => '',
-                                                                       
'PeriodTo'      => '',
-                                                                       
'Status'        => '',
+                                                                       'ID'    
                => 'C1',
+                                                                       'Name'  
                => 'Ansvar',
+                                                                       'Value' 
                => '45',
                                                                        
'Percentage'    => '100'
                                                                ),
                                                                array
                                                                (
-                                                                       'ID'    
=> 'F0',
-                                                                       'Name'  
=> 'Objekt',
-                                                                       'Value' 
=> $this->db->f('loc1'),
-                                                                       
'Description'   => '',
-                                                                       
'PeriodFrom'    => '',
-                                                                       
'PeriodTo'      => '',
-                                                                       
'Status'        => '',
+                                                                       'ID'    
                => 'F0',
+                                                                       'Name'  
                => 'Objekt',
+                                                                       'Value' 
                => $this->db->f('loc1'),
                                                                        
'Percentage'    => '100'
                                                                ),
                                                                array
                                                                (
-                                                                       'ID'    
=> 'B0',
-                                                                       'Name'  
=> 'Prosjekt',
-                                                                       'Value' 
=> '',
-                                                                       
'Description'   => '',
-                                                                       
'PeriodFrom'    => '',
-                                                                       
'PeriodTo'      => '',
-                                                                       
'Status'        => '',
+                                                                       'ID'    
                => 'B0',
+                                                                       'Name'  
                => 'Prosjekt',
+                                                                       'Value' 
                => '',
                                                                        
'Percentage'    => '100'
                                                                ),
                                                                array
                                                                (
-                                                                       'ID'    
=> 'B1',
-                                                                       'Name'  
=> 'Fagkode',
-                                                                       'Value' 
=> '999',
-                                                                       
'Description'   => '',
-                                                                       
'PeriodFrom'    => '',
-                                                                       
'PeriodTo'      => '',
-                                                                       
'Status'        => '',
+                                                                       'ID'    
                => 'B1',
+                                                                       'Name'  
                => 'Fagkode',
+                                                                       'Value' 
                => '999',
                                                                        
'Percentage'    => '100'
                                                                ),
-                                                               array
-                                                               (
-                                                                       'ID'    
=> '',
-                                                                       'Name'  
=> 'Prosent',
-                                                                       'Value' 
=> '100',
-                                                                       
'Description'   => '',
-                                                                       
'PeriodFrom'    => '',
-                                                                       
'PeriodTo'      => '',
-                                                                       
'Status'        => '',
-                                                                       
'Percentage'    => '100'
-                                                               ),
                                                        )
                                                )
                                        );
 
-                               $xmldata = 
phpgwapi_xmlhelper::toXML($Attribute, 'Attribute');
+                               $xmldata = 
phpgwapi_xmlhelper::toXML($Attribute, 'AttributeValue');
 
                                $reader = new XMLReader();
                                $reader->XML($xmldata,'utf-8');
 
                                while ($reader->read())
                                {
-                                       if ($reader->nodeType == 
XMLREADER::ELEMENT && $reader->localName == 'Attribute')
+                                       if ($reader->nodeType == 
XMLREADER::ELEMENT && $reader->localName == 'AttributeValue')
                                        {
                                                $domnode = $reader->expand();
                                                
$domElement->appendChild($domnode);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]