From 5bb8b3d6c617b5de64e62f2cc77551cc5174dafd Mon Sep 17 00:00:00 2001 From: konrad Date: Tue, 17 Feb 2009 18:52:01 +0000 Subject: [PATCH] some more work on serializer git-svn-id: https://silmor.de/svn/softmagic/smoke/trunk@271 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33 --- woc/phpout.cpp | 13 +++++++++++-- woc/phpout.h | 6 +++++- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/woc/phpout.cpp b/woc/phpout.cpp index 8a817cd..9ac9ae5 100644 --- a/woc/phpout.cpp +++ b/woc/phpout.cpp @@ -248,10 +248,17 @@ void WocPHPServerOut::newClass(const WocClass&cls) //implement serializers k=cls.serializers(); for(int i=0;isaveXml();\n}\n"; - code+="function toXml"+k[i]+"($xml){\n\t$root=$xml->createElement(\""+cls.name()+k[i]+"\");\n"; - //TODO: add properties + //toXml function: + code+="function toXml"+k[i]+"($xml){\n"; + code+="\t$root=$xml->createElement(\""+cls.name()+k[i]+"\");\n"; + //add properties + QStringList p=cls.serializerProperties(k[i]); + for(int j=0;j