<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>create an SDO</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="ref.sca.html">SCA Functions</a></div> <div class="next" style="text-align: right; float: right;"><a href="sca.getservice.html">SCA::getService</a></div> <div class="up"><a href="ref.sca.html">SCA Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="sca.createdataobject" class="refentry"> <div class="refnamediv"> <h1 class="refname">SCA::createDataObject</h1> <p class="verinfo">(PECL SDO >= 0.5.0)</p><p class="refpurpose"><span class="refname">SCA::createDataObject</span> — <span class="dc-title"> create an SDO </span></p> </div> <div class="refsect1 description" id="refsect1-sca.createdataobject-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type"><a href="ref.sdo.html" class="type SDO_DataObject">SDO_DataObject</a></span> <span class="methodname"><strong>SCA::createDataObject</strong></span> ( <span class="methodparam"> <span class="type">string</span> <code class="parameter">$type_namespace_uri</code> </span> , <span class="methodparam"> <span class="type">string</span> <code class="parameter">$type_name</code> </span> )</div> <div class="warning"><strong class="warning">Warning</strong><p class="simpara">This function is <em class="emphasis">EXPERIMENTAL</em>. The behaviour of this function, its name, and surrounding documentation may change without notice in a future release of PHP. This function should be used at your own risk. </p></div> <p class="para"> This method is used inside an SCA component that needs to create an SDO to return. The parameters are the desired SDO's namespace URI and type name. The namespace and type must be defined in one of the schema files which are specified on the @types annotation within the component. </p> </div> <div class="refsect1 parameters" id="refsect1-sca.createdataobject-parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"> <em><code class="parameter">type_namespace_uri</code></em> </span> <dd> <p class="para"> The namespace of the type. </p> </dd> </dt> <dt> <span class="term"> <em><code class="parameter">type_name</code></em> </span> <dd> <p class="para"> The name of the type. </p> </dd> </dt> </dl> </p> </div> <div class="refsect1 returnvalues" id="refsect1-sca.createdataobject-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns the newly created SDO_DataObject. </p> </div> <div class="refsect1 errors" id="refsect1-sca.createdataobject-errors"> <h3 class="title">Errors/Exceptions</h3> <p class="para"> <dl> <dt> <span class="term"> <em><code class="parameter">SDO_TypeNotFoundException</code></em> </span> <dd> <p class="para"> Thrown if the namespaceURI and typeName do not correspond to a type in any of the schema files specified in the @types annotations. </p> </dd> </dt> </dl> </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="ref.sca.html">SCA Functions</a></div> <div class="next" style="text-align: right; float: right;"><a href="sca.getservice.html">SCA::getService</a></div> <div class="up"><a href="ref.sca.html">SCA Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>