SDO_DAS_DataFactory::addPropertyToType
(No version information available, might be only in CVS)
SDO_DAS_DataFactory::addPropertyToType — Adds a property to a type
Описание
Эта функция является ЭКСПЕРИМЕНТАЛЬНОЙ. Поведение этой функции, ее имя и относящаяся к ней документация могут измениться в последующих версиях PHP без уведомления. Используйте эту функцию на свой страх и риск.
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.
Список параметров
- parent_type_namespace_uri
-
The namespace URI for the parent type.
- parent_type_name
-
The type name for the parent type.
- property_name
-
The name by which the property will be known in the parent type.
- type_namespace_uri
-
The namespace URI for the type of the property.
- type_name
-
The type name for the type of the property
- options
-
This array holds one or more key=>value pairs to set attribute values for the property. The optional keywords are:
- many
-
A flag to say whether the property is many-valued. A value of 'true' adds the property as a many-valued property (default is 'false').
- readOnly
-
A flag to say whether the property is read-only. A value of 'true' means the property value cannot be modified through the SDO application APIs (default is 'false').
- containment
-
A flag to say whether the property is contained by the parent. A value of 'true' means the property is contained by the parent. A value of 'false' results in a non-containment reference (default is 'true'). This flag is only interpreted when adding properties which are data object types, otherwise it is ignored.
- default
-
A default value for the property. Omitting this key means that the property does not have a default value. A property can only have a default value if it is a single-valued data type (primitive).
Возвращаемые значения
None.
Список изменений
Версия | Описание |
---|---|
0.5.2 | Optional parameters many, readOnly, and containment deprecated in favour of the options array. |
Примеры
Пример #1 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));
?>
- PHP Руководство
- Функции по категориям
- Индекс функций
- Справочник функций
- Обработка XML
- Service Data Objects
- Функция SDO_DAS_ChangeSummary::beginLogging() - Begin change logging
- Функция SDO_DAS_ChangeSummary::endLogging() - End change logging
- Функция SDO_DAS_ChangeSummary::getChangeType() - Get the type of change made to an SDO_DataObject
- Функция SDO_DAS_ChangeSummary::getChangedDataObjects() - Get the changed data objects from a change summary
- Функция SDO_DAS_ChangeSummary::getOldContainer() - Get the old container for a deleted SDO_DataObject
- Функция SDO_DAS_ChangeSummary::getOldValues() - Get the old values for a given changed SDO_DataObject
- Функция SDO_DAS_ChangeSummary::isLogging() - Test to see whether change logging is switched on
- Функция SDO_DAS_DataFactory::addPropertyToType() - Adds a property to a type
- Функция SDO_DAS_DataFactory::addType() - Add a new type to a model
- Функция SDO_DAS_DataFactory::getDataFactory() - Get a data factory instance
- Функция SDO_DAS_DataObject::getChangeSummary() - Get a data object's change summary
- Функция SDO_DAS_Setting::getListIndex() - Get the list index for a changed many-valued property
- Функция SDO_DAS_Setting::getPropertyIndex() - Get the property index for a changed property
- Функция SDO_DAS_Setting::getPropertyName() - Get the property name for a changed property
- Функция SDO_DAS_Setting::getValue() - Get the old value for the changed property
- Функция SDO_DAS_Setting::isSet() - Test whether a property was set prior to being modified
- Функция SDO_DataFactory::create() - Create an SDO_DataObject
- Функция SDO_DataObject::clear() - Clear an SDO_DataObject's properties
- Функция SDO_DataObject::createDataObject() - Create a child SDO_DataObject
- Функция SDO_DataObject::getContainer() - Get a data object's container
- Функция SDO_DataObject::getSequence() - Get the sequence for a data object
- Функция SDO_DataObject::getTypeName() - Return the name of the type for a data object.
- Функция SDO_DataObject::getTypeNamespaceURI() - Return the namespace URI of the type for a data object.
- Функция SDO_Exception::getCause() - Get the cause of the exception.
- Функция SDO_List::insert() - Insert into a list
- Функция SDO_Model_Property::getContainingType() - Get the SDO_Model_Type which contains this property
- Функция SDO_Model_Property::getDefault() - Get the default value for the property
- Функция SDO_Model_Property::getName() - Get the name of the SDO_Model_Property
- Функция SDO_Model_Property::getType() - Get the SDO_Model_Type of the property
- Функция SDO_Model_Property::isContainment() - Test to see if the property defines a containment relationship
- Функция SDO_Model_Property::isMany() - Test to see if the property is many-valued
- Функция SDO_Model_ReflectionDataObject::__construct() - Construct an SDO_Model_ReflectionDataObject
- Функция SDO_Model_ReflectionDataObject::export() - Get a string describing the SDO_DataObject.
- Функция SDO_Model_ReflectionDataObject::getContainmentProperty() - Get the property which defines the containment relationship to the data object
- Функция SDO_Model_ReflectionDataObject::getInstanceProperties() - Get the instance properties of the SDO_DataObject
- Функция SDO_Model_ReflectionDataObject::getType() - Get the SDO_Model_Type for the SDO_DataObject
- Функция SDO_Model_Type::getBaseType() - Get the base type for this type
- Функция SDO_Model_Type::getName() - Get the name of the type
- Функция SDO_Model_Type::getNamespaceURI() - Get the namespace URI of the type
- Функция SDO_Model_Type::getProperties() - Get the SDO_Model_Property objects defined for the type
- Функция SDO_Model_Type::getProperty() - Get an SDO_Model_Property of the type
- Функция SDO_Model_Type::isAbstractType() - Test to see if this SDO_Model_Type is an abstract data type
- Функция SDO_Model_Type::isDataType() - Test to see if this SDO_Model_Type is a primitive data type
- Функция SDO_Model_Type::isInstance() - Test for an SDO_DataObject being an instance of this SDO_Model_Type
- Функция SDO_Model_Type::isOpenType() - Test to see if this type is an open type
- Функция SDO_Model_Type::isSequencedType() - Test to see if this is a sequenced type
- Функция SDO_Sequence::getProperty() - Return the property for the specified sequence index.
- Функция SDO_Sequence::insert() - Insert into a sequence
- Функция SDO_Sequence::move() - Move an item to another sequence position
Коментарии
404 Not Found