SDO_DAS_DataFactory::addType

(no version information, might be only in CVS)

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

Beschreibung

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

Warnung

Diese Funktion ist EXPERIMENTELL. Das Verhalten, der Funktionsname und alles Andere was hier dokumentiert ist, kann sich in zukünftigen PHP-Versionen ohne Ankündigung ändern. Seien Sie gewarnt und verwenden Sie diese Funktion auf eigenes Risiko.

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.

Parameter Liste

namespaceURI

The namespace of the type.

typeName

The name of the type.

Rückgabewerte

No values returned.

Beispiele

Beispiel 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');
?>