mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Add <?php ?> to some examples that lacked them.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@191545 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
88cb6dc07c
commit
0006a6a474
1 changed files with 11 additions and 1 deletions
|
@ -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 @@ require_once 'SDO/DAS/Relational.php';
|
|||
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
/*****************************************************************
|
||||
* METADATA DEFINING THE DATABASE
|
||||
******************************************************************/
|
||||
|
@ -370,6 +373,7 @@ $employee_table = array (
|
|||
)
|
||||
);
|
||||
$database_metadata = array($company_table, $department_table, $employee_table);
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
|
||||
|
@ -550,10 +554,12 @@ $database_metadata = array($company_table, $department_table, $employee_table);
|
|||
</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 @@ $das -> applyChanges($dbh, $root);
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue