Пример #1
0
 /**
  * Return the list of the operation of the WSDL
  * 
  * @return array An array who contains all the operation of the WSDL
  */
 public function __getFunctions()
 {
     $wsdl = new wsdl($this->wsdl);
     $operations = $wsdl->getOperations();
     $return = array();
     foreach ($operations as $_operation) {
         $output = $_operation['output']['parts'];
         $output_type = 'void';
         if (array_key_exists('return', $output)) {
             $output_type = end(explode(':', $output['return']));
         }
         $name = $_operation['name'];
         $input = array();
         foreach ($_operation['input']['parts'] as $_param => $_type) {
             $input[] = end(explode(':', $_type)) . ' $' . $_param;
         }
         $input = join(', ', $input);
         $return[] = "{$output_type} {$name}({$input})";
     }
     return $return;
 }