Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > 05cd670d8a02b2b4a0ffb1756f2e8308 > files > 4163

php-manual-zh-5.2.4-1mdv2008.1.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>SDO_DAS_DataFactory::addType</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="PHP 手册"
HREF="index.html"><LINK
REL="UP"
TITLE="SDO Functions"
HREF="ref.sdo.html"><LINK
REL="PREVIOUS"
TITLE="SDO_DAS_DataFactory::addPropertyToType"
HREF="function.sdo-das-datafactory-addpropertytotype.html"><LINK
REL="NEXT"
TITLE="SDO_DAS_DataFactory::getDataFactory"
HREF="function.sdo-das-datafactory-getdatafactory.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=UTF-8"></HEAD
><BODY
CLASS="refentry"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>PHP 手册</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="function.sdo-das-datafactory-addpropertytotype.html"
ACCESSKEY="P"
>上一页</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.sdo-das-datafactory-getdatafactory.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="function.SDO-DAS-DataFactory-addType"
></A
>SDO_DAS_DataFactory::addType</H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN202915"
></A
><P
>    (no version information, might be only in CVS)</P
>SDO_DAS_DataFactory::addType&nbsp;--&nbsp;
   Add a new type to a model
  </DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN202918"
></A
><H2
>说明</H2
>void <B
CLASS="methodname"
>SDO_DAS_DataFactory::addType</B
> ( string type_namespace_uri, string type_name [, array options] )<BR
></BR
><DIV
CLASS="warning"
><P
></P
><TABLE
CLASS="warning"
BORDER="1"
WIDTH="100%"
><TR
><TD
ALIGN="CENTER"
><B
>警告</B
></TD
></TR
><TR
><TD
ALIGN="LEFT"
><P
>本函数是<SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>实验性</I
></SPAN
>的。本函数的行为,包括函数名称以及其它任何关于本函数的文档可能会在没有通知的情况下随
PHP 以后的发布而改变。使用本函数风险自担。</P
></TD
></TR
></TABLE
></DIV
><P
>&#13;   Add a new type to the SDO_DAS_DataFactory, 
   defined by its namespace and type name.
   The type becomes part of the model of data objects 
   that the data factory can create.
  </P
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN202936"
></A
><H2
>参数</H2
><P
>&#13;   <P
></P
><DIV
CLASS="variablelist"
><DL
><DT
><CODE
CLASS="parameter"
>type_namespace_uri</CODE
></DT
><DD
><P
>&#13;       The namespace of the type.
      </P
></DD
><DT
><CODE
CLASS="parameter"
>type_name</CODE
></DT
><DD
><P
>&#13;       The name of the type.
      </P
></DD
><DT
><CODE
CLASS="parameter"
>options</CODE
></DT
><DD
><P
> This array holds one or more key=&#62;value pairs to set attribute
      values for the type. The optional keywords are:</P
><P
></P
><DIV
CLASS="variablelist"
><DL
><DT
><CODE
CLASS="parameter"
>open</CODE
></DT
><DD
><P
>A flag to say whether the type is open. 
         An SDO_DataObject whose type is open can have properties added to 
         them which are not described by the type. This capability is used to 
         support working with XML documents whose schema support open content
         such as that described by an &#60;xsd:any&#62; element.
         The default value is 'false'.
         </P
></DD
><DT
><CODE
CLASS="parameter"
>sequenced</CODE
></DT
><DD
><P
> A flag to say whether the type is sequenced. 
         Sequenced types can have the ordering across properties preserved
         and can contain unstructured text. 
         The default value is 'false'.
         For more information on sequenced types see the section on 
         <A
HREF="ref.sdo.html#sdo.sample.sequence"
>Working with Sequenced Data
         Objects</A
>.
         </P
></DD
><DT
><CODE
CLASS="parameter"
>basetype</CODE
></DT
><DD
><P
> If specified, an array of namespace URI and type name strings for the 
         type from which this type is derived. 
         An example of the use of base types is when a type derived in an XML 
         schema inherits from another type by using &#60;extension base="..."&#62;.
         </P
></DD
></DL
></DIV
></DD
></DL
></DIV
>
  </P
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN202972"
></A
><H2
>返回值</H2
><P
>&#13;   None.
  </P
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN202975"
></A
><H2
>范例</H2
><P
>&#13;   <TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
CLASS="EXAMPLE"
><TR
><TD
><DIV
CLASS="example"
><A
NAME="AEN202978"
></A
><P
><B
>例 1. A
     <B
CLASS="function"
>SDO_DAS_DataFactory::addType()</B
>
example</B
></P
><P
>&#13;The following adds a new data object type of 'CompanyType'
where that type belongs to the namespace 'CompanyNS'.
    </P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
CELLPADDING="5"
><TR
><TD
><code><font color="#000000">
<font color="#0000BB">&lt;?php<br />&nbsp;&nbsp;$df</font><font color="#007700">-&gt;</font><font color="#0000BB">addType</font><font color="#007700">(</font><font color="#DD0000">'CompanyNS'</font><font color="#007700">, </font><font color="#DD0000">'CompanyType'</font><font color="#007700">);<br /></font><font color="#0000BB">?&gt;</font>
</font>
</code></TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
>
  </P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="function.sdo-das-datafactory-addpropertytotype.html"
ACCESSKEY="P"
>上一页</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>起始页</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="function.sdo-das-datafactory-getdatafactory.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>SDO_DAS_DataFactory::addPropertyToType</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ref.sdo.html"
ACCESSKEY="U"
>上一级</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>SDO_DAS_DataFactory::getDataFactory</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>