didou Wed Jul 16 13:12:21 2003 EDT
Modified files:
/phpdoc/en/reference/hw/functions hw-modifyobject.xml
Log:
adding PHP tags in the examples
Index: phpdoc/en/reference/hw/functions/hw-modifyobject.xml
diff -u phpdoc/en/reference/hw/functions/hw-modifyobject.xml:1.2
phpdoc/en/reference/hw/functions/hw-modifyobject.xml:1.3
--- phpdoc/en/reference/hw/functions/hw-modifyobject.xml:1.2 Wed Apr 17 02:38:40
2002
+++ phpdoc/en/reference/hw/functions/hw-modifyobject.xml Wed Jul 16 13:12:20
2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<!-- splitted from ./en/functions/hw.xml, last change in rev 1.2 -->
<refentry id="function.hw-modifyobject">
<refnamediv>
@@ -60,11 +60,13 @@
<title>modifying an attribute</title>
<programlisting role="php">
<![CDATA[
+<?php
// $connect is an existing connection to the Hyperwave server
// $objid is the ID of the object to modify
$remarr = array("Name" => "books");
$addarr = array("Name" => "articles");
$hw_modifyobject($connect, $objid, $remarr, $addarr);
+?>
]]>
</programlisting>
</example>
@@ -76,11 +78,13 @@
<title>adding a completely new attribute</title>
<programlisting role="php">
<![CDATA[
+<?php
// $connect is an existing connection to the Hyperwave server
// $objid is the ID of the object to modify
$remarr = array("Name" => 0);
$addarr = array("Name" => "articles");
$hw_modifyobject($connect, $objid, $remarr, $addarr);
+?>
]]>
</programlisting>
</example>
@@ -99,9 +103,11 @@
<title>modifying Title attribute</title>
<programlisting role="php">
<![CDATA[
+<?php
$remarr = array("Title" => "en:Books");
$addarr = array("Title" => "en:Articles");
$hw_modifyobject($connect, $objid, $remarr, $addarr);
+?>
]]>
</programlisting>
</example>
@@ -110,9 +116,11 @@
<title>modifying Title attribute</title>
<programlisting role="php">
<![CDATA[
+<?php
$remarr = array("Title" => array("en" => "Books"));
$addarr = array("Title" => array("en" => "Articles", "ge"=>"Artikel"));
$hw_modifyobject($connect, $objid, $remarr, $addarr);
+?>
]]>
</programlisting>
</example>
@@ -122,9 +130,11 @@
<title>removing attribute</title>
<programlisting role="php">
<![CDATA[
+<?php
$remarr = array("Title" => "");
$addarr = array("Title" => "en:Articles");
$hw_modifyobject($connect, $objid, $remarr, $addarr);
+?>
]]>
</programlisting>
</example>
@@ -165,7 +175,7 @@
</note>
</para>
<para>
- Returns &true; if no error occurs otherwise &false;.
+ &return.success;
</para>
</refsect1>
</refentry>
--
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php