rrichards               Wed Dec 14 16:30:49 2005 EDT

  Modified files:              
    /phpdoc/en/reference/xmlreader      constants.xml 
  Log:
  constants are now class constants
  
http://cvs.php.net/viewcvs.cgi/phpdoc/en/reference/xmlreader/constants.xml?r1=1.1&r2=1.2&diff_format=u
Index: phpdoc/en/reference/xmlreader/constants.xml
diff -u phpdoc/en/reference/xmlreader/constants.xml:1.1 
phpdoc/en/reference/xmlreader/constants.xml:1.2
--- phpdoc/en/reference/xmlreader/constants.xml:1.1     Tue Jul 19 02:42:45 2005
+++ phpdoc/en/reference/xmlreader/constants.xml Wed Dec 14 16:30:49 2005
@@ -1,8 +1,14 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.1 $ -->
+<!-- $Revision: 1.2 $ -->
 <section id="xmlreader.constants">
  &reftitle.constants;
  &extension.constants;
+  <warning>
+   <para>
+    XMLReader uses class constants since PHP 5.1. Prior releases use global
+    constants in the form <constant>XMLREADER_ELEMENT</constant>.
+   </para>
+  </warning>
   <table>
    <title>XMLReader Node Types</title>
    <tgroup cols="3">
@@ -16,7 +22,7 @@
     <tbody>
      <row>
       <entry>
-       <constant>XMLREADER_NONE</constant>
+       <constant>XMLReader::NONE</constant>
        (<type>integer</type>)
       </entry>
       <entry>0</entry>
@@ -24,7 +30,7 @@
      </row>
      <row>
       <entry>
-       <constant>XMLREADER_ELEMENT</constant>
+       <constant>XMLReader::ELEMENT</constant>
        (<type>integer</type>)
       </entry>
       <entry>1</entry>
@@ -32,7 +38,7 @@
      </row>
      <row>
       <entry>
-       <constant>XMLREADER_ATTRIBUTE</constant> 
+       <constant>XMLReader::ATTRIBUTE</constant> 
       (<type>integer</type>)
       </entry>
       <entry>2</entry>
@@ -40,7 +46,7 @@
      </row>
      <row>
       <entry>
-       <constant>XMLREADER_TEXT</constant>
+       <constant>XMLReader::TEXT</constant>
        (<type>integer</type>)
       </entry>
       <entry>3</entry>
@@ -48,7 +54,7 @@
      </row>
      <row>
       <entry>
-       <constant>XMLREADER_CDATA</constant>
+       <constant>XMLReader::CDATA</constant>
        (<type>integer</type>)
       </entry>
       <entry>4</entry>
@@ -56,7 +62,7 @@
      </row>
      <row>
       <entry>
-       <constant>XMLREADER_ENTITY_REF</constant>
+       <constant>XMLReader::ENTITY_REF</constant>
        (<type>integer</type>)
       </entry>
       <entry>5</entry>
@@ -64,7 +70,7 @@
      </row>
      <row>
       <entry>
-       <constant>XMLREADER_ENTITY</constant>
+       <constant>XMLReader::ENTITY</constant>
        (<type>integer</type>)
       </entry>
       <entry>6</entry>
@@ -72,7 +78,7 @@
      </row>
      <row>
       <entry>
-       <constant>XMLREADER_PI</constant>
+       <constant>XMLReader::PI</constant>
        (<type>integer</type>)
       </entry>
       <entry>7</entry>
@@ -80,7 +86,7 @@
      </row>
      <row>
       <entry>
-       <constant>XMLREADER_COMMENT</constant>
+       <constant>XMLReader::COMMENT</constant>
        (<type>integer</type>)
       </entry>
       <entry>8</entry>
@@ -88,7 +94,7 @@
      </row>
      <row>
       <entry>
-       <constant>XMLREADER_DOC</constant>
+       <constant>XMLReader::DOC</constant>
        (<type>integer</type>)
       </entry>
       <entry>9</entry>
@@ -96,7 +102,7 @@
      </row>
      <row>
       <entry>
-       <constant>XMLREADER_DOC_TYPE</constant>
+       <constant>XMLReader::DOC_TYPE</constant>
        (<type>integer</type>)
       </entry>
       <entry>10</entry>
@@ -104,7 +110,7 @@
      </row>
      <row>
       <entry>
-       <constant>XMLREADER_DOC_FRAGMENT</constant>
+       <constant>XMLReader::DOC_FRAGMENT</constant>
        (<type>integer</type>)
       </entry>
       <entry>11</entry>
@@ -112,7 +118,7 @@
      </row>
      <row>
       <entry>
-       <constant>XMLREADER_NOTATION</constant>
+       <constant>XMLReader::NOTATION</constant>
        (<type>integer</type>)
       </entry>
       <entry>12</entry>
@@ -120,7 +126,7 @@
      </row>
      <row>
       <entry>
-       <constant>XMLREADER_WHITESPACE</constant>
+       <constant>XMLReader::WHITESPACE</constant>
        (<type>integer</type>)
       </entry>
       <entry>13</entry>
@@ -128,7 +134,7 @@
      </row>
      <row>
       <entry>
-       <constant>XMLREADER_SIGNIFICANT_WHITESPACE</constant>
+       <constant>XMLReader::SIGNIFICANT_WHITESPACE</constant>
        (<type>integer</type>)
       </entry>
       <entry>14</entry>
@@ -136,7 +142,7 @@
      </row>
      <row>
       <entry>
-       <constant>XMLREADER_END_ELEMENT</constant>
+       <constant>XMLReader::END_ELEMENT</constant>
        (<type>integer</type>)
       </entry>
       <entry>15</entry>
@@ -144,7 +150,7 @@
      </row>
      <row>
       <entry>
-       <constant>XMLREADER_END_ENTITY</constant>
+       <constant>XMLReader::END_ENTITY</constant>
        (<type>integer</type>)
       </entry>
       <entry>16</entry>
@@ -152,7 +158,7 @@
      </row>
      <row>
       <entry>
-       <constant>XMLREADER_XML_DECLARATION</constant>
+       <constant>XMLReader::XML_DECLARATION</constant>
        (<type>integer</type>)
       </entry>
       <entry>17</entry>
@@ -174,7 +180,7 @@
     <tbody>
      <row>
       <entry>
-       <constant>XMLREADER_LOADDTD</constant>
+       <constant>XMLReader::LOADDTD</constant>
        (<type>integer</type>)
       </entry>
       <entry>1</entry>
@@ -182,7 +188,7 @@
      </row>
      <row>
       <entry>
-       <constant>XMLREADER_DEFAULTATTRS</constant>
+       <constant>XMLReader::DEFAULTATTRS</constant>
        (<type>integer</type>)
       </entry>
       <entry>2</entry>
@@ -190,7 +196,7 @@
      </row>
      <row>
       <entry>
-       <constant>XMLREADER_VALIDATE</constant>
+       <constant>XMLReader::VALIDATE</constant>
        (<type>integer</type>)
       </entry>
       <entry>3</entry>
@@ -198,7 +204,7 @@
      </row>
      <row>
       <entry>
-       <constant>XMLREADER_SUBST_ENTITIES</constant>
+       <constant>XMLReader::SUBST_ENTITIES</constant>
        (<type>integer</type>)
       </entry>
       <entry>4</entry>

Reply via email to