PHP: SDO_DAS_Relational::__construct - Manual

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

search for in the

SDO_DAS_Relational::createRootDataObject SDO_DAS_Relational::applyChanges

Last updated: Fri, 26 Jan 2007

view this page in

# SDO_DAS_Relational::__construct

(no version information, might be only in CVS)

SDO_DAS_Relational::__construct -- Creates an instance of a Relational Data Access Service

## Описание

SDO_DAS_Relational SDO_DAS_Relational::__construct ( array database_metadata [, string application_root_type [, array SDO_containment_references_metadata]] )

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

Constructs an instance of a Relational Data Access Service from the passed metadata.

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

database_metadata

  An array containing one or more table definitions, each of which is an associative array containing the keys `name`, `columns`, `PK`, and optionally, `FK`. For a full discussion of the metadata, see the metadata section in the general information about the Relational DAS.

application_root_type

  The root of each data graph is an object of a special root type and the application data objects come below that. Of the various application types in the SDO model, one has to be the the application type immediately below the root of the data graph. If there is only one table in the database metadata, so the application root type can be inferred, this argument can be omitted.

SDO_containment_references_metadata

  An array containing one or more definitions of a containment relation, each of which is an associative array containing the keys `parent` and `child`. The containment relations describe how the types in the model are connected to form a tree. The type specified as the application root type must be present as one of the parent types in the containment references. If the application only needs to work with one table at a time, and there are no containment relations in the model, this argument can be omitted. For a full discussion of the metadata, see the metadata section in the general information about the Relational DAS.

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

Returns an SDO_DAS_Relational object on success.

## Errors/Exceptions

SDO_DAS_Relational::__construct() throws a SDO_DAS_Relational_Exception if any problems are found in the metadata.

## Примеры

For a full discussion of the metadata, see the metadata section in the general information about the Relational DAS.

add a note User Contributed Notes
SDO_DAS_Relational::__construct
There are no user contributed notes for this page.
SDO_DAS_Relational::createRootDataObject SDO_DAS_Relational::applyChanges

Last updated: Fri, 26 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