| Matthew Peters 2005-07-26, 9:00 am |
| mfp Tue Jul 26 10:13:19 2005 EDT
Modified files:
/phpdoc/en/reference/sdodasrel reference.xml
Log:
Add <?php ?> to some examples that lacked them.
http://cvs.php.net/diff.php/phpdoc/...1.7&r2=1.8&ty=u
Index: phpdoc/en/reference/sdodasrel/reference.xml
diff -u phpdoc/en/reference/sdodasrel/reference.xml:1.7 phpdoc/en/reference/sdodasrel/reference.xml:1.8
--- phpdoc/en/reference/sdodasrel/reference.xml:1.7 Tue Jul 26 10:02:08 2005
+++ phpdoc/en/reference/sdodasrel/reference.xml Tue Jul 26 10:13:17 2005
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='iso-8859-1'?>
-<!-- $Revision: 1.7 $ -->
+<!-- $Revision: 1.8 $ -->
<!-- Generated by xml_proto.php v2.1. Found in /scripts directory of phpdoc. -->
<reference id="ref.sdo.das.rel">
<title>SDO Relational Data Access Service Functions</title>
@@ -137,7 +137,9 @@
with a statement like this:
<programlisting role="php">
<![CDATA[
+<?php
require_once 'SDO/DAS/Relational.php';
+?>
]]>
</programlisting>
</para>
@@ -339,6 +341,7 @@
<programlisting role="php">
<![CDATA[
+<?php
/ ****************************************
*************************
* METADATA DEFINING THE DATABASE
****************************************
**************************/
@@ -370,6 +373,7 @@
)
);
$database_metadata = array($company_table, $department_table, $employee_table);
+?>
]]>
</programlisting>
@@ -550,10 +554,12 @@
</para>
<programlisting role="php">
<![CDATA[
+<?php
$department_reference = array( 'parent' => 'company', 'child' => 'department');
$employee_reference = array( 'parent' => 'department', 'child' => 'employee');
$SDO_reference_metadata = array($department_reference, $employee_reference);
+?>
]]>
</programlisting>
@@ -1046,13 +1052,17 @@
root object. You must use:
<programlisting role="php" id="sdo.das.rel.examples.1cd-CRUD.good-delete">
<![CDATA[
+<?php
unset($root['company'][0]);
+?>
]]>
</programlisting>
and not:
<programlisting role="php" id="sdo.das.rel.examples.1cd-CRUD.bad-delete">
<![CDATA[
+<?php
unset($acme); //WRONG
+?>
]]>
</programlisting>
Simply unsetting
|