From: konrad Date: Tue, 6 Jul 2010 20:00:31 +0000 (+0000) Subject: make sure parent constructors are called in php X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=9dda7a71ea8317acdcd967108f14882b3f733773;p=web%2Fkonrad%2Fpack.git make sure parent constructors are called in php git-svn-id: https://silmor.de/svn/softmagic/pack/trunk@532 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33 --- diff --git a/woc/phpout.cpp b/woc/phpout.cpp index 42675c8..211bc0a 100644 --- a/woc/phpout.cpp +++ b/woc/phpout.cpp @@ -18,7 +18,7 @@ static const QByteArray PHPSTART(""); -static const QByteArray SCHEMASTART("class WobSchema extends WobSchemaBase\n{\nfunction __construct(){\n"); +static const QByteArray SCHEMASTART("class WobSchema extends WobSchemaBase\n{\nfunction __construct(){\n\tparent::__construct();\n"); static const QByteArray SCHEMAEND("}};\n"); static const QByteArray TRANSACTCLASS("class WobTransaction extends WobTransactionBase\n{\n"); @@ -367,10 +367,10 @@ QString WocPHPServerOut::classConstruct(const WocClass&cls) if(!cls.propertyIsList(k[i]))code+="=null"; code+=";\n"; } - code+="public function __construct()\n{\n"; + code+="public function __construct()\n{\n\tparent::__construct();\n"; for(int i=0;i