Adds a property to a type. The type must already be known to the SDO_DAS_DataFactory (i.e. have been added using addType()). The property becomes a property of the type. This is how the graph model for the structure of an SDO_DataObject is built.
The namespace URI for the parent type.
The type name for the parent type.
The name by which the property will be known in the parent type.
The namespace URI for the type of the property.
The type name for the type of the property
This array holds one or more key=>value pairs to set attribute values for the property. The optional keywords are:
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.
Optional parameters many, readOnly, and containment deprecated in favour of the options array.
The following adds an 'addressline' property to a Person type. The person type is identified by its namespace, 'PersonNS', and type name, 'PersonType'. The type of the 'addressline' property is a many-valued SDO data type (primitive) with namespace 'commonj.sdo' and type name 'String'.
<?php $df->addPropertyToType('PersonNS', 'PersonType', 'addressline', 'commonj.sdo', 'String', array('many'=>true)); ?>
Please login to continue.