當前位置: 首頁>>代碼示例>>PHP>>正文


PHP test_schema函數代碼示例

本文整理匯總了PHP中test_schema函數的典型用法代碼示例。如果您正苦於以下問題:PHP test_schema函數的具體用法?PHP test_schema怎麽用?PHP test_schema使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了test_schema函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的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


注:本文中的test_schema函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。