SDO_DAS_DataFactory::addType

(^)
Add a new type to a model
void SDO_DAS_DataFactory::addType ( string $type_namespace_uri, string $type_name [, array $options ] )

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.

Parameters:
type_namespace_uri

The namespace of the type.

type_name

The name of the type.

options

This array holds one or more key=>value pairs to set attribute values for the type. The optional keywords are:

Returns:

None.

This function is EXPERIMENTAL. 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.

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

doc_php
2016-02-24 16:15:03
Comments
Leave a Comment

Please login to continue.