From: Andris S. <an...@do...> - 2001-08-25 12:50:03
Attachments:
r2.zip
|
I'm moving to the university, so until I get into the new flat and get a new internet connection and buy a new computer, etc. I'm going to be offline. Howerver, I feel I should leave things in order, so here's the latest version of xmltphp (sorry for sending the files to the list again, didn't have any time to play with CVS). xml2php now uses the idea from Alex to know when to generate keyless arrays(the version before generated keyless arrays if there were two array keys with the same name, but it didn't work if there was only one array defined). _Because of this change it is necesary to change the bcp.xml page definitions and the way Page processes them._ So, <langs> <lang> <name>Latvian</name> </lang> <lang> <name>English</name> </lang> </langs> will become $langs=array( array( 'name' => "Latvian", ), array( 'name' => "English", ), ); Over and out, Andris Spruds |
From: alex b. <en...@tu...> - 2001-08-25 21:33:45
|
> I'm moving to the university, so until I get into the new flat and get a new > internet connection and buy a new computer, etc. I'm going to be offline. > > Howerver, I feel I should leave things in order, so here's the latest > version of xmltphp (sorry for sending the files to the list again, didn't > have any time to play with CVS). > > xml2php now uses the idea from Alex to know when to generate keyless > arrays(the version before generated keyless arrays if there were two array > keys with the same name, but it didn't work if there was only one array > defined). > _Because of this change it is necesary to change the bcp.xml page > definitions and the way Page processes them._ Got it, thanks for all your work andris, hope your move goes well. -a > > So, > <langs> > <lang> > <name>Latvian</name> > </lang> > <lang> > <name>English</name> > </lang> > </langs> > > will become > > $langs=array( > array( > 'name' => "Latvian", > ), > array( > 'name' => "English", > ), > ); > > > Over and out, > Andris Spruds |
From: Andreas A. <a.a...@th...> - 2001-08-26 12:35:40
|
Hi Andris, Hmm. But the output looks more clear to me. I think it's worth changing Page. Hopefully see you soon. Good luck with your move. Andi > xml2php now uses the idea from Alex to know when to > generate keyless arrays(the version before generated > keyless arrays if there were two array keys with the > same name, but it didn't work if there was only one array > defined). > _Because of this change it is necesary to change the bcp.xml page > definitions and the way Page processes them._ > So, > <langs> > <lang> > <name>Latvian</name> > </lang> > <lang> > <name>English</name> > </lang> > </langs> > > will become > > $langs=array( > array( > 'name' => "Latvian", > ), > array( > 'name' => "English", > ), > ); > > Over and out, > Andris Spruds |
From: alex b. <en...@tu...> - 2001-08-26 22:31:19
|
I need to look at this, but I'm willing to bet that I'll agree. I'll probably commit a changed version of Page on monday. _a ----- Original Message ----- From: "Andreas Aderhold" <a.a...@th...> To: <bin...@li...> Sent: Sunday, August 26, 2001 5:19 AM Subject: RE: [binarycloud-dev] bye-bye [xm2php] > Hi Andris, > > Hmm. But the output looks more clear to me. I think it's worth changing > Page. > > Hopefully see you soon. Good luck with your move. > > Andi > > > xml2php now uses the idea from Alex to know when to > > generate keyless arrays(the version before generated > > keyless arrays if there were two array keys with the > > same name, but it didn't work if there was only one array > > defined). > > _Because of this change it is necesary to change the bcp.xml page > > definitions and the way Page processes them._ > > > So, > > <langs> > > <lang> > > <name>Latvian</name> > > </lang> > > <lang> > > <name>English</name> > > </lang> > > </langs> > > > > will become > > > > $langs=array( > > array( > > 'name' => "Latvian", > > ), > > array( > > 'name' => "English", > > ), > > ); > > > > > Over and out, > > Andris Spruds > > > > _______________________________________________ > binarycloud-dev mailing list > bin...@li... > http://lists.sourceforge.net/lists/listinfo/binarycloud-dev > |
From: Andreas A. <a.a...@th...> - 2001-08-27 12:38:53
|
Hi Alex, sorry, maybe I was a bit too fast when I inspected the files (I visited the wrong one). The output generated for a page is actually unusable. The Keyless module arrays in page are normally translated to the "container-format" we apply also to datasources/queries/lang: load => array( array(modulefoo), array(modulebar), ... ); With Andris' latest files I get a structure like this: load => array( 'module' => array( modulefoodata ) ); This does not work, 'caus onyl the last module entry of the pagedef is in the generated page (the key module is sequently overwritten). Andi > -----Original Message----- > From: bin...@li... > [mailto:bin...@li...]On Behalf Of alex > black > Sent: Montag, 27. August 2001 00:28 > To: bin...@li... > Subject: Re: [binarycloud-dev] bye-bye [xm2php] > > > I need to look at this, but I'm willing to bet that I'll agree. > > I'll probably commit a changed version of Page on monday. > > _a > > ----- Original Message ----- > From: "Andreas Aderhold" <a.a...@th...> > > > Hi Andris, > > > > Hmm. But the output looks more clear to me. I think it's worth changing > > Page. > > > > Hopefully see you soon. Good luck with your move. > > > > Andi > > > > > xml2php now uses the idea from Alex to know when to > > > generate keyless arrays(the version before generated > > > keyless arrays if there were two array keys with the > > > same name, but it didn't work if there was only one array > > > defined). > > > _Because of this change it is necesary to change the bcp.xml page > > > definitions and the way Page processes them._ > > > > > So, > > > <langs> > > > <lang> > > > <name>Latvian</name> > > > </lang> > > > <lang> > > > <name>English</name> > > > </lang> > > > </langs> > > > > > > will become > > > > > > $langs=array( > > > array( > > > 'name' => "Latvian", > > > ), > > > array( > > > 'name' => "English", > > > ), > > > ); > > > |