Dashboard > PHP Community > ... > SDO with PHP > SDO Examples
Log In   View a printable version of the current page.
SDO Examples
Added by Simon Laws, last edited by Caroline Maynard on Feb 12, 2007  (view change) show comment
Labels: 
(None)


Many examples of how to use PHP SDO are included in the documentation and in the source code. Here we try and collect together and reference all the examples.

SDO Core

Setting and Getting Property Values

Access via property name
Access via property name as array index
Iterating through data objects

Access many-valued property by name
Access individual elements of many-valued properties
Iterating across a many-valued property

Chaining property references on a single line

Accessing a many values property using an XPath-like expression

Using XPath to query and identify parts of a data object based on instance data

Creating a child data object
[Setting a primitive property]
Unset a primitive property
[Setting a data object]
Unset a data object
[Setting a referenced data object]
Unset a referenced data object

Sequenced Data Objects

Getting the SDO_Sequence interface
Getting and setting sequence values
Interating through sequences
Adding a value to a sequence
Removing a value from a sequence

Reflecting on Service Data Objects

Reflecting on a Data Object
Accessing type information

SDO Relational DAS

Meta Data

Specifying meta data

One-table Examples

Creating a data object
Retrieving a data object
Updating a data object
Deleting a data object

Two-table Examples

One company, one department - Create
One company, one department - Retrieve and Update
One company, two departments - Retrieve and Delete

Three-table Example

One company, one department, one employee - Create
One company, one department, one employee - Retrieve and update
One company, two departments, two employees - Retrieve and delete

SDO XML DAS

Loading, altering, and saving an XML document
Creating a new XML document
Setting XML document properties
Using an open type
Finding out what you can from the document
Printing the SDO model

Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.4.5 Build:#708 Apr 12, 2007) - Bug/feature request - Contact Administrators