Permalink
Browse files

[UPDATE] Improve php doc and update features

[UPDATE] Improve php doc and update features
Improve php doc for @uses tags when attributes are inherited
(modification of WsdlToPhpStruct::getAttributes() behaviour!)
Minor update when generating comment for array comment type by removing
space after comma
Improve SOAPHeader detection and type determination
Inroduce global value dedicated to the WsdlTophpGenerator class to store
global values and unset them at once
Update WsdlTophpGenerator php doc
Add several test cases for SOAPHeader detection
  • Loading branch information...
mikaelcom committed Jan 18, 2013
1 parent 7bec9b8 commit e252260701e21e171e12e01857e3d8e0a07364ec
Showing with 240 additions and 55 deletions.
  1. +4 −4 WsdlToPhpFunction.php
  2. +218 −40 WsdlToPhpGenerator.php
  3. +1 −1 WsdlToPhpModel.php
  4. +17 −10 WsdlToPhpStruct.php
@@ -83,8 +83,8 @@ public function getComment($_part = '')
$attributes = $model->getAttributes(true);
if(count($attributes))
{
foreach($attributes as $attribute)
array_push($comments,'@uses ' . $model->getPackagedName() . '::' . $attribute->getGetterName() . '()');
foreach($attributes as $attributeData)
array_push($comments,'@uses ' . $attributeData['model']->getPackagedName() . '::' . $attributeData['attribute']->getGetterName() . '()');
array_push($comments,'@param ' . $model->getPackagedName() . ' $_' . lcfirst($model->getPackagedName()));
}
}
@@ -186,8 +186,8 @@ public function getBody(&$_body)
$attributes = $parameterModel->getAttributes(true);
if(count($attributes))
{
foreach($attributes as $attribute)
array_push($soapParametersEnd,(WsdlToPhpGenerator::getOptionSendArrayAsParameter()?'\'' . addslashes($attribute->getName()) . '\'=>':'') . $parameterName . '->' . $attribute->getGetterName() . '()');
foreach($attributes as $attributeData)
array_push($soapParametersEnd,(WsdlToPhpGenerator::getOptionSendArrayAsParameter()?'\'' . addslashes($attributeData['attribute']->getName()) . '\'=>':'') . $parameterName . '->' . $attributeData['attribute']->getGetterName() . '()');
$soapParametersStart = implode(',',$soapParametersEnd);
$soapParametersEnd = '';
}
Oops, something went wrong.

0 comments on commit e252260

Please sign in to comment.