PHP: SDO_DAS_DataFactory::addType - Manual

downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

SDO_DAS_DataFactory::getDataFactory SDO_DAS_DataFactory::addPropertyToType

Last updated: Sat, 27 Jan 2007

view this page in

# SDO_DAS_DataFactory::addType

(no version information, might be only in CVS)

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] )

Внимание
Эта функция является ЭКСПЕРИМЕНТАЛЬНОЙ. Поведение этой функции, ее имя и относящаяся к ней документация могут измениться в последующих версиях PHP без уведомления. Используйте эту функцию на свой страх и риск.

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.

## Список параметров

`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="...">.

## Возвращаемые значения

None.

## Примеры

Пример 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'); ?>`

add a note User Contributed Notes
SDO_DAS_DataFactory::addType
There are no user contributed notes for this page.
SDO_DAS_DataFactory::getDataFactory SDO_DAS_DataFactory::addPropertyToType

Last updated: Sat, 27 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 10:36:09 2007 PST