Delicious Bookmark this on Delicious Share on Facebook SlashdotSlashdot It! Digg! Digg



PHP : Function Reference : SDO Functions : SDO_DAS_DataFactory::addPropertyToType

SDO_DAS_DataFactory::addPropertyToType

Adds a property to a type ()
void SDO_DAS_DataFactory::addPropertyToType ( string parent_type_namespace_uri, string parent_type_name, string property_name, string type_namespace_uri, string type_name [, array options] )

Example 2186. A SDO_DAS_DataFactory::addPropertyToType() example

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

Change Language


Follow Navioo On Twitter
SDO_DAS_ChangeSummary::beginLogging
SDO_DAS_ChangeSummary::endLogging
SDO_DAS_ChangeSummary::getChangeType
SDO_DAS_ChangeSummary::getChangedDataObjects
SDO_DAS_ChangeSummary::getOldContainer
SDO_DAS_ChangeSummary::getOldValues
SDO_DAS_ChangeSummary::isLogging
SDO_DAS_DataFactory::addPropertyToType
SDO_DAS_DataFactory::addType
SDO_DAS_DataFactory::getDataFactory
SDO_DAS_DataObject::getChangeSummary
SDO_DAS_Setting::getListIndex
SDO_DAS_Setting::getPropertyIndex
SDO_DAS_Setting::getPropertyName
SDO_DAS_Setting::getValue
SDO_DAS_Setting::isSet
SDO_DataFactory::create
SDO_DataObject::clear
SDO_DataObject::createDataObject
SDO_DataObject::getContainer
SDO_DataObject::getSequence
SDO_DataObject::getTypeName
SDO_DataObject::getTypeNamespaceURI
SDO_Exception::getCause
SDO_List::insert
SDO_Model_Property::getContainingType
SDO_Model_Property::getDefault
SDO_Model_Property::getName
SDO_Model_Property::getType
SDO_Model_Property::isContainment
SDO_Model_Property::isMany
SDO_Model_ReflectionDataObject::__construct
SDO_Model_ReflectionDataObject::export
SDO_Model_ReflectionDataObject::getContainmentProperty
SDO_Model_ReflectionDataObject::getInstanceProperties
SDO_Model_ReflectionDataObject::getType
SDO_Model_Type::getBaseType
SDO_Model_Type::getName
SDO_Model_Type::getNamespaceURI
SDO_Model_Type::getProperties
SDO_Model_Type::getProperty
SDO_Model_Type::isAbstractType
SDO_Model_Type::isDataType
SDO_Model_Type::isInstance
SDO_Model_Type::isOpenType
SDO_Model_Type::isSequencedType
SDO_Sequence::getProperty
SDO_Sequence::insert
SDO_Sequence::move
eXTReMe Tracker