cvs: peardoc /en/package/fileformats/file-marc formatting.xml

From: Date: Sun, 18 Mar 2007 23:27:21 +0000
Subject: cvs: peardoc /en/package/fileformats/file-marc formatting.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-9524@lists.php.net to get a copy of this message
dbs Sun Mar 18 23:27:21 2007 UTC Modified files: /peardoc/en/package/fileformats/file-marc formatting.xml Log: Correct superfluous () in function names. http://cvs.php.net/viewvc.cgi/peardoc/en/package/fileformats/file-marc/formatting.xml?r1=1.1&r2=1.2&diff_format=u Index: peardoc/en/package/fileformats/file-marc/formatting.xml diff -u peardoc/en/package/fileformats/file-marc/formatting.xml:1.1 peardoc/en/package/fileformats/file-marc/formatting.xml:1.2 --- peardoc/en/package/fileformats/file-marc/formatting.xml:1.1 Fri Feb 23 01:15:47 2007 +++ peardoc/en/package/fileformats/file-marc/formatting.xml Sun Mar 18 23:27:21 2007 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry id="package.fileformats.file-marc.formatting"> <refnamediv> <refname>Formatting MARC data</refname> @@ -21,7 +21,7 @@ <refsect1 id="package.fileformats.file-marc.formatting.marc21"> <title>Formatting MARC 21 data</title> <para> - To return a record in MARC 21 format, call the <function>toRaw()</function> + To return a record in MARC 21 format, call the <function>toRaw</function> method on the <classname>File_MARC_Record</classname> object. </para> @@ -33,7 +33,7 @@ stored in the <varname>$records</varname> array. To write this data to a file in MARC 21 format, we simply open the file in binary mode and write the contents of the records in the array to the file - by calling the <function>toRaw()</function> method on each record + by calling the <function>toRaw</function> method on each record in turn. </para> @@ -64,10 +64,10 @@ <title>Creating human-readable output from MARC data</title> <para> To return a human-readable version of a MARC 21 or MARCXML record, - call the <function>__toString()</function> method on the + call the <function>__toString</function> method on the <classname>File_MARC_Record</classname> object. Note that you call the - <function>__toString()</function> method implicitly when you call the - <function>print()</function> function on a + <function>__toString</function> method implicitly when you call the + <function>print</function> function on a <classname>File_MARC_Record</classname> object. </para> @@ -76,7 +76,7 @@ <para> In the following example, we print the contents of each MARC record in a human-readable format and also explicitly call - the <function>__toString()</function> method so that we can write + the <function>__toString</function> method so that we can write the human-readable contents to a file. Notice that it does not matter whether the source format is MARC or MARCXML, the methods we call to format the data for output are the same. @@ -111,12 +111,12 @@ <refsect1 id="package.fileformats.file-marc.writing.marcxml"> <title>Formatting MARCXML data</title> <para> - To return a record in MARCXML format, call the <function>toXML()</function> + To return a record in MARCXML format, call the <function>toXML</function> method on the <classname>File_MARC_Record</classname> object. </para> <warning> - <title>Significant restrictions on the <function>toXML()</function> method</title> + <title>Significant restrictions on the <function>toXML</function> method</title> <itemizedlist> <listitem> <para> @@ -134,10 +134,10 @@ </listitem> <listitem> <para> - The <function>toXML()</function> method currently produces a single, + The <function>toXML</function> method currently produces a single, complete, valid XML MARCXML document for a single <classname>File_MARC_Record</classname> object. You cannot simply - concatenate the results of calling <function>toXML()</function> on two + concatenate the results of calling <function>toXML</function> on two <classname>File_MARC_Record</classname> objects, because that will produce invalid an invalid XML document. At this time, it is up to the developer to extract the <varname>record</varname> node from each MARCXML @@ -157,7 +157,7 @@ stored in the <varname>$record</varname> variable. To write this data to a file in MARCXML format, we simply open the file in binary mode and write the record to the file by calling the - <function>toXML()</function> method on the record object. + <function>toXML</function> method on the record object. </para> <programlisting role="php"><![CDATA[

« previous php.pear.doc (#9524) next »