Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fixed some issued faced in generating the download zip after includin…

…g the class list

and the query string issue including the classList - fixed
  • Loading branch information...
commit f086caab7670af8d9d7590305a439d482a57a5f3 1 parent cefd733
Rifky Rafeethu authored
16 index2.php
@@ -27,6 +27,7 @@
27 27 {
28 28 $attributeList[] = GetVariable(('fieldattribute_'.$i));
29 29 $z++;
  30 +
30 31 }
31 32 if (GetVariable(('type_'.$i)) != null && $z==$i)
32 33 {
@@ -38,19 +39,20 @@
38 39 {
39 40 $typeList[] = GetVariable(('ttype_'.$i));
40 41 }
  42 +
  43 + if (GetVariable(('type_'.$i)) == "BELONGSTO" || GetVariable(('type_'.$i)) == "HASMANY"){
  44 + $classList[] = GetVariable(('tclass_'.$i));
  45 + }
  46 + else{
  47 + $classList[] ='';
  48 + }
  49 +
41 50 }
42 51 else
43 52 {
44 53 //attribute may have been removed. proceed to next row
45 54 $z++;
46 55 }
47   -
48   - if (GetVariable(('type_'.$i)) == "BELONGSTO" || GetVariable(('type_'.$i)) == "HASMANY"){
49   - $classList[] = GetVariable(('tclass_'.$i));
50   - }
51   - else{
52   - $classList[] = '';
53   - }
54 56 }
55 57
56 58 $_SESSION['objectName'] = $objectName;
3  index3.php
@@ -41,11 +41,12 @@
41 41 $language = $_SESSION['language'];
42 42 $wrapper = $_SESSION['wrapper'];
43 43 $pdoDriver = $_SESSION['pdoDriver'];
  44 + $classList = unserialize($_SESSION['classList']);
44 45 $dbEncoding = "0";
45 46
46 47 try
47 48 {
48   - $package = unserialize($client->GeneratePackage($objectName, $attributeList, $typeList, $language, $wrapper, $pdoDriver, $dbEncoding));
  49 + $package = unserialize($client->GeneratePackage($objectName, $attributeList, $typeList, $language, $wrapper, $pdoDriver, $dbEncoding, $classList));
49 50 }
50 51
51 52 catch (SoapFault $e)
2  object_factory/class.objectphp5.1pdomysql.php
@@ -189,7 +189,7 @@ function CreatePreface()
189 189 $this->string .= "\n* @version POG ".$GLOBALS['configuration']['versionNumber'].$GLOBALS['configuration']['revisionNumber']." / ".strtoupper($this->language)." MYSQL";
190 190 $this->string .= "\n* @see http://www.phpobjectgenerator.com/plog/tutorials/45/pdo-mysql";
191 191 $this->string .= "\n* @copyright ".$GLOBALS['configuration']['copyright'];
192   - $this->string .= "\n* @link http://www.phpobjectgenerator.com/?language=".$this->language."&wrapper=pdo&pdoDriver=".$this->pdoDriver."&objectName=".urlencode($this->objectName)."&attributeList=".urlencode(var_export($this->attributeList, true))."&typeList=".urlencode(urlencode(var_export($this->typeList, true)))."&classList=".urlencode(urlencode(var_export($this->classList, true)));
  192 + $this->string .= "\n* @link http://www.phpobjectgenerator.com/?language=".$this->language."&wrapper=pdo&pdoDriver=".$this->pdoDriver."&objectName=".urlencode($this->objectName)."&attributeList=".urlencode(var_export($this->attributeList, true))."&typeList=".urlencode(urlencode(var_export($this->typeList, true)))."&classList=".urlencode(var_export($this->classList, true));
193 193 $this->string .= "\n*/";
194 194 }
195 195
1  services/pog.wsdl
@@ -83,6 +83,7 @@
83 83 <part name="wrapper" type="xsd:string"/>
84 84 <part name="pdoDriver" type="xsd:string"/>
85 85 <part name="db_encoding" type="xsd:string"/>
  86 + <part name="classList" type="tns:StringArray"/>
86 87 </message>
87 88 <message name="GeneratePackageResponse">
88 89 <part name="return" type="xsd:string"/>
4 services/soap_php5.php
@@ -340,7 +340,7 @@ function GenerateConfiguration($wrapper = null, $pdoDriver = null, $db_encoding
340 340 * @param string $wrapper
341 341 * @param string $pdoDriver
342 342 */
343   - function GeneratePackage($objectName, $attributeList, $typeList, $language, $wrapper, $pdoDriver = null, $db_encoding = 0)
  343 + function GeneratePackage($objectName, $attributeList, $typeList, $language, $wrapper, $pdoDriver = null, $db_encoding = 0, $classList)
344 344 {
345 345 require_once ("../include/configuration.php");
346 346 require_once ("../include/class.misc.php");
@@ -376,7 +376,7 @@ function GeneratePackage($objectName, $attributeList, $typeList, $language, $wra
376 376 $data = file_get_contents("../object_factory/class.pog_base.".strtolower($language).strtolower($wrapper).".php");
377 377 $package["objects"]["class.pog_base.php"] = base64_encode($data);
378 378
379   - $package["objects"]["class.".strtolower($objectName).".php"] = $this->GenerateObject($objectName, $attributeList, $typeList, $language, $wrapper, $pdoDriver);
  379 + $package["objects"]["class.".strtolower($objectName).".php"] = $this->GenerateObject($objectName, $attributeList, $typeList, $language, $wrapper, $pdoDriver, $classList);
380 380
381 381 $package["objects"]["ignore_objects.txt"] = "";
382 382

0 comments on commit f086caa

Please sign in to comment.
Something went wrong with that request. Please try again.