SDO_DAS_DataFactory::addType

(no version information, might be only in CVS)

SDO_DAS_DataFactory::addType --  Add a new type to a model.

说明

void SDO_DAS_DataFactory::addType ( string namespaceURI, string typeName )

警告

本函数是实验性的。本函数的行为,包括函数名称以及其它任何关于本函数的文档可能会在没有通知的情况下随 PHP 以后的发布而改变。使用本函数风险自担。

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.

参数

namespaceURI

The namespace of the type.

typeName

The name of the type.

返回值

No values returned.

范例

例子 1. A SDO_DAS_DataFactory::addType() example

The following adds a new data object type of 'CompanyType' where that type belongs to the namespace 'CompanyNS'.

<?php
  $df
->addType('CompanyNS', 'CompanyType');
?>