php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #52387 Add straight to class definitons __getTypes output
Submitted: 2010-07-21 13:32 UTC Modified: 2010-07-22 05:05 UTC
From: ehalls at gmail dot com Assigned:
Status: Open Package: SOAP related
PHP Version: 5.3.2 OS: Linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ehalls at gmail dot com
New email:
PHP Version: OS:

 

 [2010-07-21 13:32 UTC] ehalls at gmail dot com
Description:
------------
To see the feature description go to the following link: 

http://pastebin.org/410682

I link to this page rather than type the description here because your parser keeps mangling it up.




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-07-22 05:05 UTC] aharvey@php.net
OK, now the bug tracker's fixed, here's the problem copy/pasted from
Pastebin:

Hi, 

1. I am using the current version of __getTypes to dynamically generate
classes and classmap from a wdsl file. The problem is that the output
of __getTypes does not output some form of notation for base classes.
Even though there are xml tags available that dictate such a link. 

For example, it does not extract 'AbstractResponseType' and display it
as the base class of 'BMUpdateButtonResponseType' from the following
excerpt:

<xs:complexType name="BMUpdateButtonResponseType">
        <xs:complexContent>
             <xs:extension base="ebl:AbstractResponseType">
                                    
2. Wouldn't it be better just to output the type strings in php class
notation and provide a __evalClass('classname') function to load a
particular class as needed for a request?

3. If I am missing some information and this has already been
implemented then please just let me know. 


Thanks
 [2010-07-22 11:25 UTC] ehalls at gmail dot com
Thank you for doing this {aharvey AT php dot net}.
 [2010-07-22 12:52 UTC] ehalls at gmail dot com
I have already implemented the dynamic class generation from the current output of getTypes. If you like I can work on something for addition to PHP5 soap class? I am not sure how to become a dev so I can extend the base classes with features we could all use.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Dec 03 02:01:28 2024 UTC