cvs: peardoc /en/package/fileformats/file-marc formatting.xml reading.xml
| From: | Dan Scott | Date: | Thu, 07 Feb 2008 16:24:44 +0000 |
| Subject: | cvs: peardoc /en/package/fileformats/file-marc formatting.xml reading.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-10468@lists.php.net to get a copy of this message | ||
dbs Thu Feb 7 16:24:44 2008 UTC
Modified files:
/peardoc/en/package/fileformats/file-marc formatting.xml
reading.xml
Log:
Use explicit File_MARC:: constants
http://cvs.php.net/viewvc.cgi/peardoc/en/package/fileformats/file-marc/formatting.xml?r1=1.2&r2=1.3&diff_format=u
Index: peardoc/en/package/fileformats/file-marc/formatting.xml
diff -u peardoc/en/package/fileformats/file-marc/formatting.xml:1.2
peardoc/en/package/fileformats/file-marc/formatting.xml:1.3
--- peardoc/en/package/fileformats/file-marc/formatting.xml:1.2 Sun Mar 18 23:27:21 2007
+++ peardoc/en/package/fileformats/file-marc/formatting.xml Thu Feb 7 16:24:43 2008
@@ -1,4 +1,4 @@
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<refentry id="package.fileformats.file-marc.formatting">
<refnamediv>
<refname>Formatting MARC data</refname>
@@ -86,7 +86,7 @@
require 'File/MARCXML.php';
// Retrieve a set of MARCXML records from a string
-$journals = new File_MARCXML($xml_data, SOURCE_STRING);
+$journals = new File_MARCXML($xml_data, File_MARC::SOURCE_STRING);
// Open a file for binary write access
$marc21_file = fopen("records.mrc", "wb");
http://cvs.php.net/viewvc.cgi/peardoc/en/package/fileformats/file-marc/reading.xml?r1=1.5&r2=1.6&diff_format=u
Index: peardoc/en/package/fileformats/file-marc/reading.xml
diff -u peardoc/en/package/fileformats/file-marc/reading.xml:1.5
peardoc/en/package/fileformats/file-marc/reading.xml:1.6
--- peardoc/en/package/fileformats/file-marc/reading.xml:1.5 Tue Aug 28 04:10:44 2007
+++ peardoc/en/package/fileformats/file-marc/reading.xml Thu Feb 7 16:24:43 2008
@@ -1,4 +1,4 @@
-<!-- $Revision: 1.5 $ -->
+<!-- $Revision: 1.6 $ -->
<refentry id="package.fileformats.file-marc.reading">
<refnamediv>
<refname>Reading MARC data</refname>
@@ -22,8 +22,8 @@
<refsect1 id="package.fileformats.file-marc.reading.source">
<title>Reading MARC data from different sources</title>
<para>
- Your input source can be a PHP stream (<constant>SOURCE_FILE</constant>) or a string
- (<constant>SOURCE_STRING</constant>). The source location and source types are the
+ Your input source can be a PHP stream (<constant>File_MARC::SOURCE_FILE</constant>)
or a string
+ (<constant>File_MARC::SOURCE_STRING</constant>). The source location and source
types are the
first and second arguments to the <classname>File_MARC</classname>
and <classname>File_MARCXML</classname> constructors.
</para>
@@ -37,7 +37,7 @@
to tell File_MARC that <filename>journals.mrc</filename> is a filename or
stream pointing to the MARC content, because the value of the second
parameter of the constructor for <classname>File_MARC</classname> defaults
- to <constant>SOURCE_FILE</constant>.
+ to <constant>File_MARC::SOURCE_FILE</constant>.
</para>
<programlisting role="php"><![CDATA[
@@ -64,7 +64,7 @@
<varname>$xml_data</varname>, as a string. To read the MARCXML data, we
call the constructor for <classname>File_MARCXML</classname>. To tell
File_MARCXML that <varname>$xml_data</varname> is a string, we specify
- <constant>SOURCE_STRING</constant> as the second parameter of the
+ <constant>File_MARC::SOURCE_STRING</constant> as the second parameter of the
constructor.
</para>
@@ -72,7 +72,7 @@
require 'File/MARCXML.php';
// Retrieve a set of MARCXML records from a string
-$journals = new File_MARCXML($xml_data, SOURCE_STRING);
+$journals = new File_MARCXML($xml_data, File_MARC::SOURCE_STRING);
// Iterate through the retrieved records
while ($record = $journals->next()) {
@@ -105,7 +105,7 @@
require 'File/MARC.php';
// Retrieve a set of MARC records
-$bibrecords = new File_MARC('catdump.mrc', SOURCE_FILE);
+$bibrecords = new File_MARC('catdump.mrc', File_MARC::SOURCE_FILE);
// Iterate through the retrieved records
while ($record = $bibrecords->next()) {
@@ -153,7 +153,7 @@
require 'File/MARC.php';
// Retrieve a set of MARC records from a z39 result string
-$bibrecords = new File_MARC($z39_result, SOURCE_STRING);
+$bibrecords = new File_MARC($z39_result, File_MARC::SOURCE_STRING);
// Iterate through the retrieved records
while ($record = $bibrecords->next()) {
@@ -203,7 +203,7 @@
require 'File/MARC.php';
// Retrieve a set of MARC records from a z39 result string
-$bibrecords = new File_MARC($z39_result, SOURCE_STRING);
+$bibrecords = new File_MARC($z39_result, File_MARC::SOURCE_STRING);
// Go through each record
while ($record = $bibrecords->next()) {