SDO_DAS_DataFactory::addType
(^)
SDO_DAS_DataFactory::addType — Add a new type to a model
Description
$type_namespace_uri
, string $type_name
[, array $options
] )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.
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:
-
open
-
A flag to say whether the type is open. An SDO_DataObject whose type is open can have properties added to them which are not described by the type. This capability is used to support working with XML documents whose schema support open content such as that described by an <xsd:any> element. The default value is 'false'.
-
sequenced
-
A flag to say whether the type is sequenced. Sequenced types can have the ordering across properties preserved and can contain unstructured text. The default value is 'false'. For more information on sequenced types see the section on Working with Sequenced Data Objects.
-
basetype
-
If specified, an array of namespace URI and type name strings for the type from which this type is derived. An example of the use of base types is when a type derived in an XML schema inherits from another type by using <extension base="...">.
-
Return Values
None.
Examples
Example #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');
?>
- 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