VirtualBox

Changeset 23887 in vbox


Ignore:
Timestamp:
Oct 19, 2009 7:26:26 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
53670
Message:

API bindings: updated PHP wrappers from James Lucas

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/webservice/websrv-php.xsl

    r22379 r23887  
    1010        web service API. Depends on WSDL file for actual SOAP bindings.
    1111
    12      Copyright (C) 2008 Sun Microsystems, Inc.
     12     Copyright (C) 2009 Sun Microsystems, Inc.
    1313
    1414     This file is part of VirtualBox Open Source Edition (OSE), as
     
    8484  <xsl:param name="attrtype" />
    8585  <xsl:param name="attrsafearray" />
    86   <xsl:variable name="fname"><xsl:call-template name="makeSetterName"><xsl:with-param name="attrname" select="$attrname"/></xsl:call-template> </xsl:variable>
     86  <xsl:variable name="fname"><xsl:call-template name="makeSetterName"><xsl:with-param name="attrname" select="$attrname"/></xsl:call-template></xsl:variable>
    8787   public function <xsl:value-of select="$fname"/>($value) {
    8888       $request = stdClass();
     
    102102   <xsl:variable name="ifname"><xsl:value-of select="@name" /></xsl:variable>
    103103   <xsl:variable name="wsmap"><xsl:value-of select="@wsmap" /></xsl:variable>
     104   <xsl:variable name="extends"><xsl:value-of select="@extends" /></xsl:variable>
    104105   <xsl:text>
    105106/**
    106107* Generated VBoxWebService Interface Wrapper
    107 */</xsl:text>
    108 class <xsl:value-of select="$ifname"/> extends VBox_ManagedObject
    109 {
     108*/
     109</xsl:text>
     110   <xsl:choose>
     111      <xsl:when test="($extends = '$unknown') or ($extends = '$dispatched') or ($extends = '$errorinfo')">
     112         <xsl:value-of select="concat('class ', $ifname, ' extends VBox_ManagedObject {&#10;')" />
     113      </xsl:when>
     114      <xsl:when test="//interface[@name=$extends]">
     115         <xsl:value-of select="concat('class ', $ifname, ' extends ', $extends, ' {&#10;')" />
     116      </xsl:when>
     117   </xsl:choose>
    110118   <xsl:for-each select="method">
    111119       <xsl:call-template name="method">
     
    225233           <xsl:text>)</xsl:text>
    226234       </xsl:if>
    227        <xsl:text>;</xsl:text>
    228        <xsl:text>&#10;&#10;</xsl:text>
     235       <xsl:text>;&#10;</xsl:text>
    229236</xsl:template>
    230237
     
    257264
    258265/*
    259 * Copyright (C) 2008 Sun Microsystems, Inc.
     266* Copyright (C) 2009 Sun Microsystems, Inc.
    260267*
    261268* This file is part of VirtualBox Open Source Edition (OSE), as
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette