本文整理汇总了PHP中test_schema函数的典型用法代码示例。如果您正苦于以下问题:PHP test_schema函数的具体用法?PHP test_schema怎么用?PHP test_schema使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了test_schema函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: test_schema
<?php
include "test_schema.inc";
$schema = <<<EOF
\t<simpleType name="testType">
\t\t<list>
\t\t\t<simpleType>
\t\t\t\t<restriction base="int"/>
\t\t\t</simpleType>
\t\t</list>
\t</simpleType>
EOF;
test_schema($schema, 'type="tns:testType"', array(123, 456.7));
echo "ok";
开发者ID:badlamer,项目名称:hhvm,代码行数:14,代码来源:schema012.php
示例2: test_schema
<?php
include "test_schema.inc";
$schema = <<<EOF
\t<simpleType name="testType">
\t\t<union memberTypes="string int float"/>
\t</simpleType>
EOF;
test_schema($schema, 'type="tns:testType"', "str");
echo "ok";
开发者ID:badlamer,项目名称:hhvm,代码行数:10,代码来源:schema013.php
示例3: test_schema
<?php
include "test_schema.inc";
$schema = <<<EOF
\t<complexType name="testType">
\t\t<attribute name="int1" type="int"/>
\t\t<attribute name="int2" type="int" form="qualified"/>
\t\t<attribute name="int3" type="int" form="unqualified"/>
\t</complexType>
EOF;
test_schema($schema, 'type="tns:testType"', (object) array("int1" => 1.1, "int2" => 2.2, "int3" => 3.3), "rpc", "encoded");
echo "ok";
开发者ID:badlamer,项目名称:hhvm,代码行数:12,代码来源:schema077.php
示例4: test_schema
<?php
include "test_schema.inc";
$schema = <<<EOF
\t<complexType name="testType">
\t\t<sequence>
\t\t\t<element name="str" type="string"/>
\t\t</sequence>
\t\t<attribute name="int" type="int"/>
\t</complexType>
EOF;
test_schema($schema, 'type="tns:testType"', (object) array("str" => "str", "int" => 123.5));
echo "ok";
开发者ID:badlamer,项目名称:hhvm,代码行数:13,代码来源:schema037.php
示例5: test_schema
<?php
include "test_schema.inc";
$schema = '';
test_schema($schema, 'type="xsd:unsignedLong"', 0xffffffff);
echo "ok";
开发者ID:badlamer,项目名称:hhvm,代码行数:6,代码来源:schema063.php
示例6: test_schema
<?php
include "test_schema.inc";
$schema = <<<EOF
\t<complexType name="testType2">
\t\t<sequence>
\t\t\t<element name="int" type="int"/>
\t\t</sequence>
\t</complexType>
\t<complexType name="testType">
\t\t<complexContent>
\t\t\t<extension base="tns:testType2">
\t\t\t\t<sequence>
\t\t\t\t\t<element name="int2" type="int"/>
\t\t\t\t</sequence>
\t\t\t</extension>
\t\t</complexContent>
\t</complexType>
EOF;
class A
{
public $int = 1;
}
class B extends A
{
public $int2 = 2;
}
test_schema($schema, 'type="tns:testType"', new B());
echo "ok";
开发者ID:badlamer,项目名称:hhvm,代码行数:29,代码来源:schema085.php
示例7: test_schema
<?php
include "test_schema.inc";
$schema = <<<EOF
\t<element name="testElement" type="tns:testType"/>
\t<complexType name="testType">
\t\t<complexContent>
\t\t\t<restriction base="SOAP-ENC:Array">
\t <attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="int[]"/>
\t</restriction>
</complexContent>
\t</complexType>
EOF;
test_schema($schema, 'element="tns:testElement"', array(123, 123.5), 'document', 'literal');
echo "ok";
开发者ID:badlamer,项目名称:hhvm,代码行数:15,代码来源:schema073.php
示例8: test_schema
<?php
include "test_schema.inc";
$schema = <<<EOF
\t<complexType name="testType">
\t\t<sequence>
\t\t\t<element name="int1" type="int"/>
\t\t\t<element name="int2" type="int" form="qualified"/>
\t\t\t<element name="int3" type="int" form="unqualified"/>
\t\t</sequence>
\t</complexType>
EOF;
test_schema($schema, 'type="tns:testType"', (object) array("int1" => 1.1, "int2" => 2.2, "int3" => 3.3), "rpc", "literal", 'elementFormDefault="unqualified"');
echo "ok";
开发者ID:badlamer,项目名称:hhvm,代码行数:14,代码来源:schema079.php
示例9: test_schema
<?php
include "test_schema.inc";
$schema = <<<EOF
\t<complexType name="testType">
\t\t<complexContent>
\t\t\t<extension base="apache:Map" xmlns:apache="http://xml.apache.org/xml-soap">
\t</extension>
</complexContent>
\t</complexType>
EOF;
test_schema($schema, 'type="testType"', array('a' => 123, 'b' => 123.5));
echo "ok";
开发者ID:badlamer,项目名称:hhvm,代码行数:13,代码来源:schema055.php
示例10: test_schema
<?php
include "test_schema.inc";
$schema = <<<EOF
\t<simpleType name="testType">
\t\t<list>
\t\t\t<simpleType>
\t\t\t\t<union memberTypes="int float str"/>
\t\t\t</simpleType>
\t\t</list>
\t</simpleType>
EOF;
test_schema($schema, 'type="tns:testType"', "123 123.5 456.7 str");
echo "ok";
开发者ID:badlamer,项目名称:hhvm,代码行数:14,代码来源:schema021.php
示例11: test_schema
<?php
include "test_schema.inc";
$schema = <<<EOF
\t<simpleType name="testType">
\t\t<list itemType="token"/>
\t</simpleType>
EOF;
test_schema($schema, 'type="tns:testType"', "one two");
echo "ok";
开发者ID:badlamer,项目名称:hhvm,代码行数:10,代码来源:schema009.php
示例12: test_schema
<?php
include "test_schema.inc";
$schema = '';
test_schema($schema, 'type="apache:Map" xmlns:apache="http://xml.apache.org/xml-soap"', array('a' => 123, 'b' => 123.5));
echo "ok";
开发者ID:badlamer,项目名称:hhvm,代码行数:6,代码来源:schema054.php
示例13: test_schema
<?php
include "test_schema.inc";
$schema = <<<EOF
\t<simpleType name="testType">
\t\t<union>
\t\t\t<simpleType>
\t\t\t\t<restriction base="float"/>
\t\t\t</simpleType>
\t\t\t<simpleType>
\t\t\t\t<list itemType="int"/>
\t\t\t</simpleType>
\t\t</union>
\t</simpleType>
EOF;
test_schema($schema, 'type="tns:testType"', "123.5");
echo "ok";
开发者ID:badlamer,项目名称:hhvm,代码行数:17,代码来源:schema018.php
示例14: test_schema
<?php
include "test_schema.inc";
$schema = <<<EOF
\t<complexType name="testType">
\t\t<complexContent>
\t\t\t<restriction base="SOAP-ENC:Array">
\t\t\t\t<all>
\t\t\t\t\t<element name="x_item" type="int" maxOccurs="unbounded"/>
\t\t </all>
\t</restriction>
</complexContent>
\t</complexType>
EOF;
test_schema($schema, 'type="tns:testType"', array(123, 123.5));
echo "ok";
开发者ID:badlamer,项目名称:hhvm,代码行数:16,代码来源:schema024.php
示例15: test_schema
<?php
include "test_schema.inc";
$schema = <<<EOF
\t<simpleType name="testType">
\t\t<restriction>
\t\t\t<simpleType name="testType2">
\t\t <restriction base="xsd:int"/>
\t </simpleType>
\t </restriction>
\t</simpleType>
\t<element name="testElement" type="tns:testType"/>
EOF;
test_schema($schema, 'element="tns:testElement"', 123.5);
echo "ok";
开发者ID:badlamer,项目名称:hhvm,代码行数:15,代码来源:schema006.php
示例16: test_schema
<?php
include "test_schema.inc";
$schema = <<<EOF
\t<complexType name="testType">
\t\t<simpleContent>
\t\t\t<restriction base="int">
\t\t\t\t<attribute name="int" type="int"/>
\t\t\t</restriction>
\t\t</simpleContent>
\t</complexType>
EOF;
test_schema($schema, 'type="tns:testType"', (object) array("_" => NULL, "int" => 123.5));
echo "ok";
开发者ID:badlamer,项目名称:hhvm,代码行数:14,代码来源:schema062.php
示例17: gmmktime
<?php
include "test_schema.inc";
$schema = <<<EOF
\t<complexType name="testType">
\t\t<sequence>
\t\t\t<element name="dateTime" type="dateTime"/>
\t\t\t<element name="time" type="time"/>
\t\t\t<element name="date" type="date"/>
\t\t\t<element name="gYearMonth" type="gYearMonth"/>
\t\t\t<element name="gYear" type="gYear"/>
\t\t\t<element name="gMonthDay" type="gMonthDay"/>
\t\t\t<element name="gDay" type="gDay"/>
\t\t\t<element name="gMonth" type="gMonth"/>
\t\t</sequence>
\t</complexType>
EOF;
$date = gmmktime(1, 2, 3, 4, 5, 1976);
putenv('TZ=GMT');
test_schema($schema, 'type="tns:testType"', array('dateTime' => $date, 'time' => $date, 'date' => $date, 'gYearMonth' => $date, 'gYear' => $date, 'gMonthDay' => $date, 'gDay' => $date, 'gMonth' => $date));
echo "ok";
开发者ID:badlamer,项目名称:hhvm,代码行数:21,代码来源:schema064.php
示例18: test_schema
<?php
include "test_schema.inc";
$schema = <<<EOF
\t<complexType name="testType">
\t\t<sequence>
\t\t\t<element name="str" type="string"/>
\t\t</sequence>
\t\t<attribute name="int" type="int"/>
\t</complexType>
EOF;
test_schema($schema, 'type="tns:testType"', (object) array("str" => "str", "int" => 123.5), "rpc", "encoded", 'attributeFormDefault="qualified"');
echo "ok";
开发者ID:badlamer,项目名称:hhvm,代码行数:13,代码来源:schema074.php
示例19: test_schema
<?php
include "test_schema.inc";
$schema = <<<EOF
\t<complexType name="testType">
\t\t<attribute name="int1" type="int"/>
\t\t<attribute name="int2" type="int" form="qualified"/>
\t\t<attribute name="int3" type="int" form="unqualified"/>
\t</complexType>
EOF;
test_schema($schema, 'type="tns:testType"', (object) array("int1" => 1.1, "int2" => 2.2, "int3" => 3.3), "rpc", "encoded", 'attributeFormDefault="unqualified"');
echo "ok";
开发者ID:jianoll,项目名称:hhvm,代码行数:12,代码来源:schema076.php
示例20: test_schema
<?php
include "test_schema.inc";
$schema = <<<EOF
\t<complexType name="testType">
\t\t<complexContent>
\t\t\t<restriction base="SOAP-ENC:Array">
\t\t\t\t<all>
\t\t\t\t\t<element name="x_item" type="int" maxOccurs="unbounded"/>
\t\t </all>
\t</restriction>
</complexContent>
\t</complexType>
EOF;
test_schema($schema, 'type="tns:testType"', array(123, 123.5), 'rpc', 'literal');
echo "ok";
开发者ID:badlamer,项目名称:hhvm,代码行数:16,代码来源:schema057.php
注:本文中的test_schema函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论