Changeset 24906 in vbox
- Timestamp:
- Nov 24, 2009 2:22:12 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 55190
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/webservice/websrv-php.xsl
r23890 r24906 43 43 44 44 <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> 46 46 <xsl:when test="$type='boolean'">(bool)<xsl:value-of select="$value" /></xsl:when> 47 47 <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> 48 48 <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> 49 50 <xsl:otherwise> 50 51 <xsl:choose> … … 117 118 </xsl:choose> 118 119 <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> 122 126 </xsl:for-each> 123 127 <xsl:for-each select="attribute"> … … 255 259 */</xsl:text> 256 260 class <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>); 259 263 } 260 264 </xsl:template>
Note:
See TracChangeset
for help on using the changeset viewer.