From 8f06ff2c15de39df3d832eb967db2e9d7f7e7933 Mon Sep 17 00:00:00 2001 From: konrad Date: Mon, 24 May 2010 19:06:02 +0000 Subject: [PATCH] some more usability for non-machine transactions git-svn-id: https://silmor.de/svn/softmagic/pack/trunk@472 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33 --- woc/phpout.cpp | 25 +++++++++++++++++++++---- 1 files changed, 21 insertions(+), 4 deletions(-) diff --git a/woc/phpout.cpp b/woc/phpout.cpp index 55801e8..9916e33 100644 --- a/woc/phpout.cpp +++ b/woc/phpout.cpp @@ -1006,6 +1006,7 @@ QString WocPHPServerOut::trnGetSet(const WocTransaction&trn) //setters sl=trn.outputNames(); for(int i=0;iaoutput[\""+sl[i]+"\"];}\n"; QString add; QString t=trn.outputType(sl[i]); code+="public function set"+sl[i]+"($v){\n"; @@ -1052,20 +1053,36 @@ QString WocPHPServerOut::trnGetSet(const WocTransaction&trn) QString WocPHPServerOut::trnExecute(const WocTransaction&trn) { + //the execute function is split into a static and non-static part, + //since the code from the wolf file assumes to be inside the instance QStringList in=trn.inputNames(); + //static wrapper for execution QString code="static public function execute("; for(int i=0;ihandleException($ex);\n\t}\n"; + code+="\tself::$running=\"\";\n}\n"; return code; } -- 1.7.2.5