From: konrad Date: Tue, 17 Feb 2009 18:52:01 +0000 (+0000) Subject: some more work on serializer X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=5bb8b3d6c617b5de64e62f2cc77551cc5174dafd;p=web%2Fkonrad%2Fsmoke.git some more work on serializer git-svn-id: https://silmor.de/svn/softmagic/smoke/trunk@271 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33 --- 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