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
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![]()