VirtualBox

Changeset 24906 in vbox


Ignore:
Timestamp:
Nov 24, 2009 2:22:12 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
55190
Message:

Webservice: updated PHP bindings

File:
1 edited

Legend:

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

    r23890 r24906  
    4343
    4444  <xsl:choose>
    45     <xsl:when test="$type='wstring'">(string)<xsl:value-of select="$value" /></xsl:when>
     45    <xsl:when test="$type='wstring' or $type='uuid'">(string)<xsl:value-of select="$value" /></xsl:when>
    4646    <xsl:when test="$type='boolean'">(bool)<xsl:value-of select="$value" /></xsl:when>
    4747    <xsl:when test="$type='long' or $type='unsigned long' or $type='long long' or $type='short' or $type='unsigned short' or $type='unsigned long long' or $type='result'">(int)<xsl:value-of select="$value" /></xsl:when>
    4848    <xsl:when test="$type='double' or $type='float'">(float)<xsl:value-of select="$value" /></xsl:when>
     49    <xsl:when test="$type='octet'"><xsl:value-of select="$value" /></xsl:when>
    4950    <xsl:otherwise>
    5051        <xsl:choose>
     
    117118   </xsl:choose>
    118119   <xsl:for-each select="method">
    119        <xsl:call-template name="method">
    120            <xsl:with-param name="wsmap" select="$wsmap" />
    121        </xsl:call-template>
     120      <xsl:if test="not((param[@type=($G_setSuppressedInterfaces/@name)])
     121                      or (param[@mod='ptr']))" >
     122           <xsl:call-template name="method">
     123               <xsl:with-param name="wsmap" select="$wsmap" />
     124            </xsl:call-template>
     125      </xsl:if>
    122126  </xsl:for-each>
    123127  <xsl:for-each select="attribute">
     
    255259*/</xsl:text>
    256260class <xsl:value-of select="@name"/> extends VBox_Enum {
    257    public $NameMap = array(<xsl:for-each select="const"><xsl:value-of select="@value"/> => '<xsl:value-of select="@name"/>'<xsl:if test="not(position()=last())">, </xsl:if></xsl:for-each>);
    258    public $ValueMap = array(<xsl:for-each select="const">'<xsl:value-of select="@name"/>' => <xsl:value-of select="@value"/><xsl:if test="not(position()=last())">, </xsl:if></xsl:for-each>);
     261   public $NameMap = array(<xsl:for-each select="const"><xsl:if test="not(@wsmap='suppress')"><xsl:value-of select="@value"/> => '<xsl:value-of select="@name"/>'<xsl:if test="not(position()=last())">, </xsl:if></xsl:if></xsl:for-each>);
     262   public $ValueMap = array(<xsl:for-each select="const"><xsl:if test="not(@wsmap='suppress')">'<xsl:value-of select="@name"/>' => <xsl:value-of select="@value"/><xsl:if test="not(position()=last())">, </xsl:if></xsl:if></xsl:for-each>);
    259263}
    260264</xsl:template>
Note: See TracChangeset for help on using the changeset viewer.

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