Take over of package Services_Webservice
| From: | Michael Camden | Date: | Thu, 17 Dec 2009 00:12:04 +0000 |
| Subject: | Take over of package Services_Webservice | ||
| Groups: | php.pear.qa | ||
| Request: | Send a blank email to pear-qa+get-5548@lists.php.net to get a copy of this message | ||
Hello,
My name is Michael Camden. I've been a Web Developer specializing
in PHP for several years now. My current position is Sr. Web Developer
for Holiday, a local Seattle company. There are a few changes that I
have implemented to this class in my own code, and would like to see
those changes posted. I would also be happy to take over as Lead
Developer for the project, should other bugs, or changes need to be
made. I've attached my new Webservice.php file, the main class in this
project, to this email as well as a diff output.
Best regards,
Michael Camden
256d255 < $this->wsdl->formatOutput = true; 277d275 < $this->disco->formatOutput = true; 369,370c367 < // foreach ($this->wsdlStruct[$this->classname]['method'] as $methodName => $method) { < while(list($methodName, $method) = each($this->wsdlStruct[$this->classname]['method'])) { --- > foreach ($this->wsdlStruct[$this->classname]['method'] as $methodName => $method) { 372,373c369 < while(list($i, $methodVars) = each($mathod['var'])){ < //foreach ($method['var'] AS $methodVars) { --- > foreach ($method['var'] AS $methodVars) { 380,381c376 < while(list($i, $methodVars) = each($method['var'])) { < //foreach ($method['var'] AS $methodVars) { --- > foreach ($method['var'] AS $methodVars) { 393d387 < reset($this->wsdlStruct[$this->classname]['method']); 440,443c434,435 < while(list($i, $method) = each($this->wsdlStruct[$this->classname]['method'])) { < //foreach ($this->wsdlStruct[$this->classname]['method'] as $method) { < while(list($n, $var) = each($method['var'])) { < //foreach ($method['var'] as $var){ --- > foreach ($this->wsdlStruct[$this->classname]['method'] as $method) { > foreach ($method['var'] as $var){ 458d449 < reset($this->wsdlStruct[$this->classname]['method']); 474d464 < $propertiesLength = count($properties); 476c466 < for ($i = 0; $i < $properties; ++$i) { --- > for ($i = 0; $i < count($properties); ++$i) { 524,525c514 < while(list($i, $method) = each($methods)) { < //foreach ($methods AS $method) { --- > foreach ($methods AS $method) { 529,530c518,519 < $_docComments_Description = trim(str_replace('/**', '', substr($docComments, 0, strpos($docComments, '@', 0)))); < $docComments_Description = trim(substr($_docComments_Description, strpos($_docComments_Description, '*', 0) + 1, strpos($_docComments_Description, '*', 0) - 1)); --- > $_docComments_Description = trim(str_replace('/**', '', substr($docComments, 0, strpos($docComments, '@')))); > $docComments_Description = trim(substr($_docComments_Description, strpos($_docComments_Description, '*') + 1, strpos($_docComments_Description, '*', 1) - 1)); 535,536c524 < $paramsLength = count($params); < for ($i = 0; $i < $paramsLength; ++$i) { --- > for ($i = 0; $i < count($params); ++$i) { 651,652c639 < while(list($source, $target) = each($this->wsdlStruct['array'])) { < //foreach ($this->wsdlStruct['array'] as $source => $target) { --- > foreach ($this->wsdlStruct['array'] as $source => $target) { 686d672 < reset($this->wsdlStruct['array']); 698,699c684 < while(list($className, $classProperty) = each($this->wsdlStruct['class'])) { < //foreach ($this->wsdlStruct['class'] as $className=>$classProperty) { --- > foreach ($this->wsdlStruct['class'] as $className=>$classProperty) { 705,706c690 < while(list($classPropertyName, $classPropertyValue) = each($classProperty['property'])) { < //foreach ($classProperty['property'] as $classPropertyName => $classPropertyValue) { --- > foreach ($classProperty['property'] as $classPropertyName => $classPropertyValue) { 715d698 < reset($this->wsdlStruct['class']); 739,740c722 < while(list($methodName, $method) = each($this->wsdlStruct[$this->classname]['method'])) { < //foreach ($this->wsdlStruct[$this->classname]['method'] AS $methodName => $method){ --- > foreach ($this->wsdlStruct[$this->classname]['method'] AS $methodName => $method){ 748,749c730 < while(list($i, $methodVars) = each($method['var'])) { < //foreach ($method['var'] as $methodVars) { --- > foreach ($method['var'] as $methodVars) { 766d746 < reset($this->wsdlStruct[$this->classname]['method']); 799,800c779 < while(list($methodName, $methodVars) = each($this->wsdlStruct[$this->classname]['method'])) { < //foreach ($this->wsdlStruct[$this->classname]['method'] AS $methodName => $methodVars) { --- > foreach ($this->wsdlStruct[$this->classname]['method'] AS $methodName => $methodVars) { 822d800 < reset($this->wsdlStruct[$this->classname]['method']); 845,846c823 < while(list($methodName, $methodVars) = each($this->wsdlStruct[$this->classname]['method'])) { < //foreach ($this->wsdlStruct[$this->classname]['method'] AS $methodName => $methodVars) { --- > foreach ($this->wsdlStruct[$this->classname]['method'] AS $methodName => $methodVars) { 862d838 < reset($this->wsdlStruct[$this->classname]['method']); Attachment: [application/x-php] Webservice.php
256d255 < $this->wsdl->formatOutput = true; 277d275 < $this->disco->formatOutput = true; 369,370c367 < // foreach ($this->wsdlStruct[$this->classname]['method'] as $methodName => $method) { < while(list($methodName, $method) = each($this->wsdlStruct[$this->classname]['method'])) { --- > foreach ($this->wsdlStruct[$this->classname]['method'] as $methodName => $method) { 372,373c369 < while(list($i, $methodVars) = each($mathod['var'])){ < //foreach ($method['var'] AS $methodVars) { --- > foreach ($method['var'] AS $methodVars) { 380,381c376 < while(list($i, $methodVars) = each($method['var'])) { < //foreach ($method['var'] AS $methodVars) { --- > foreach ($method['var'] AS $methodVars) { 393d387 < reset($this->wsdlStruct[$this->classname]['method']); 440,443c434,435 < while(list($i, $method) = each($this->wsdlStruct[$this->classname]['method'])) { < //foreach ($this->wsdlStruct[$this->classname]['method'] as $method) { < while(list($n, $var) = each($method['var'])) { < //foreach ($method['var'] as $var){ --- > foreach ($this->wsdlStruct[$this->classname]['method'] as $method) { > foreach ($method['var'] as $var){ 458d449 < reset($this->wsdlStruct[$this->classname]['method']); 474d464 < $propertiesLength = count($properties); 476c466 < for ($i = 0; $i < $properties; ++$i) { --- > for ($i = 0; $i < count($properties); ++$i) { 524,525c514 < while(list($i, $method) = each($methods)) { < //foreach ($methods AS $method) { --- > foreach ($methods AS $method) { 529,530c518,519 < $_docComments_Description = trim(str_replace('/**', '', substr($docComments, 0, strpos($docComments, '@', 0)))); < $docComments_Description = trim(substr($_docComments_Description, strpos($_docComments_Description, '*', 0) + 1, strpos($_docComments_Description, '*', 0) - 1)); --- > $_docComments_Description = trim(str_replace('/**', '', substr($docComments, 0, strpos($docComments, '@')))); > $docComments_Description = trim(substr($_docComments_Description, strpos($_docComments_Description, '*') + 1, strpos($_docComments_Description, '*', 1) - 1)); 535,536c524 < $paramsLength = count($params); < for ($i = 0; $i < $paramsLength; ++$i) { --- > for ($i = 0; $i < count($params); ++$i) { 651,652c639 < while(list($source, $target) = each($this->wsdlStruct['array'])) { < //foreach ($this->wsdlStruct['array'] as $source => $target) { --- > foreach ($this->wsdlStruct['array'] as $source => $target) { 686d672 < reset($this->wsdlStruct['array']); 698,699c684 < while(list($className, $classProperty) = each($this->wsdlStruct['class'])) { < //foreach ($this->wsdlStruct['class'] as $className=>$classProperty) { --- > foreach ($this->wsdlStruct['class'] as $className=>$classProperty) { 705,706c690 < while(list($classPropertyName, $classPropertyValue) = each($classProperty['property'])) { < //foreach ($classProperty['property'] as $classPropertyName => $classPropertyValue) { --- > foreach ($classProperty['property'] as $classPropertyName => $classPropertyValue) { 715d698 < reset($this->wsdlStruct['class']); 739,740c722 < while(list($methodName, $method) = each($this->wsdlStruct[$this->classname]['method'])) { < //foreach ($this->wsdlStruct[$this->classname]['method'] AS $methodName => $method){ --- > foreach ($this->wsdlStruct[$this->classname]['method'] AS $methodName => $method){ 748,749c730 < while(list($i, $methodVars) = each($method['var'])) { < //foreach ($method['var'] as $methodVars) { --- > foreach ($method['var'] as $methodVars) { 766d746 < reset($this->wsdlStruct[$this->classname]['method']); 799,800c779 < while(list($methodName, $methodVars) = each($this->wsdlStruct[$this->classname]['method'])) { < //foreach ($this->wsdlStruct[$this->classname]['method'] AS $methodName => $methodVars) { --- > foreach ($this->wsdlStruct[$this->classname]['method'] AS $methodName => $methodVars) { 822d800 < reset($this->wsdlStruct[$this->classname]['method']); 845,846c823 < while(list($methodName, $methodVars) = each($this->wsdlStruct[$this->classname]['method'])) { < //foreach ($this->wsdlStruct[$this->classname]['method'] AS $methodName => $methodVars) { --- > foreach ($this->wsdlStruct[$this->classname]['method'] AS $methodName => $methodVars) { 862d838 < reset($this->wsdlStruct[$this->classname]['method']); Attachment: [application/x-php] Webservice.php