svn: /pear/peardoc/trunk/en/core/pear/ pear/intro.xml pear-exception/intro.xml

[email protected] (Helgi Þormar Þorbjörnsson) Sun, 12 Jun 2011 03:34:49 +0000
Newsgroups php.pear.doc
Message-ID <[email protected]>
dufuz                                    Sun, 12 Jun 2011 03:34:49 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=312081

Log:
tabs to spaces

Changed paths:
    UU  pear/peardoc/trunk/en/core/pear/pear/intro.xml
    UU  pear/peardoc/trunk/en/core/pear/pear-exception/intro.xml

Modified: pear/peardoc/trunk/en/core/pear/pear/intro.xml
===================================================================
--- pear/peardoc/trunk/en/core/pear/pear/intro.xml	2011-06-12 03:01:12 UTC (rev 312080)
+++ pear/peardoc/trunk/en/core/pear/pear/intro.xml	2011-06-12 03:34:49 UTC (rev 312081)
@@ -120,10 +120,10 @@
         if (!is_resource($fp)) {
             return;
         }
-	$this->file = $file;
+ $this->file = $file;
         while ($data = fread($fp, 2048)) {
             $this->contents .= $data;
-    	}
+     }
         fclose($fp);
     }

@@ -265,84 +265,84 @@
       <varlistentry>
        <term>$_PEAR_default_error_mode</term>
        <listitem>
-	<simpara>
-	 If no default error mode is set in an object, this mode will
-	 be used.  Must be one of
-	 <constant>PEAR_ERROR_RETURN</constant>,
-	 <constant>PEAR_ERROR_PRINT</constant>,
-	 <constant>PEAR_ERROR_TRIGGER</constant>,
-	 <constant>PEAR_ERROR_DIE</constant> or
-	 <constant>PEAR_ERROR_CALLBACK</constant>.
-	</simpara>
-	<para>
-	 Don't set this variable directly, call
-	 <function>PEAR::setErrorHandling</function> as a static
-	 method like this:
-	 <informalexample>
-	  <programlisting role="php">
+ <simpara>
+  If no default error mode is set in an object, this mode will
+  be used.  Must be one of
+  <constant>PEAR_ERROR_RETURN</constant>,
+  <constant>PEAR_ERROR_PRINT</constant>,
+  <constant>PEAR_ERROR_TRIGGER</constant>,
+  <constant>PEAR_ERROR_DIE</constant> or
+  <constant>PEAR_ERROR_CALLBACK</constant>.
+ </simpara>
+ <para>
+  Don't set this variable directly, call
+  <function>PEAR::setErrorHandling</function> as a static
+  method like this:
+  <informalexample>
+   <programlisting role="php">
 <![CDATA[
 PEAR::setErrorHandling(PEAR_ERROR_DIE);
 ]]>
       </programlisting>
-	 </informalexample>
-	</para>
+  </informalexample>
+ </para>
        </listitem>
       </varlistentry>
       <varlistentry>
        <term>$_PEAR_default_error_options</term>
        <listitem>
-	<simpara>
-	 If the error mode is <constant>PEAR_ERROR_TRIGGER</constant>,
-	 this is the error level (one of
-	 <constant>E_USER_NOTICE</constant>,
-	 <constant>E_USER_WARNING</constant> or
-	 <constant>E_USER_ERROR</constant>).
-	</simpara>
-	<para>
-	 Don't set this variable directly, call
-	 <function>PEAR::setErrorHandling</function> as a static
-	 method like this:
-	 <informalexample>
-	  <programlisting role="php">
+ <simpara>
+  If the error mode is <constant>PEAR_ERROR_TRIGGER</constant>,
+  this is the error level (one of
+  <constant>E_USER_NOTICE</constant>,
+  <constant>E_USER_WARNING</constant> or
+  <constant>E_USER_ERROR</constant>).
+ </simpara>
+ <para>
+  Don't set this variable directly, call
+  <function>PEAR::setErrorHandling</function> as a static
+  method like this:
+  <informalexample>
+   <programlisting role="php">
 <![CDATA[
 PEAR::setErrorHandling(PEAR_ERROR_TRIGGER, E_USER_ERROR);
 ]]>
       </programlisting>
-	 </informalexample>
-	</para>
+  </informalexample>
+ </para>
        </listitem>
       </varlistentry>
       <varlistentry>
        <term>$_PEAR_default_error_callback</term>
        <listitem>
-	<simpara>
-	 If no <replaceable>options</replaceable> parameter is used
-	 when an error is raised and the error mode is
-	 <constant>PEAR_ERROR_CALLBACK</constant>, the value of this
-	 variable is used as the callback.  This means that you can
-	 switch the error mode temporarily and return to callback mode
-	 without specifying the callback function again.  A string
-	 value represents a function, a two-element array with an
-	 object at index 0 and a string at index 1 represents a
-	 method.
-	</simpara>
-	<para>
-	 Again, don't set this variable directly, call
-	 <function>PEAR::setErrorHandling</function> as a static
-	 method like this:
-	 <informalexample>
-	  <programlisting role="php">
+ <simpara>
+  If no <replaceable>options</replaceable> parameter is used
+  when an error is raised and the error mode is
+  <constant>PEAR_ERROR_CALLBACK</constant>, the value of this
+  variable is used as the callback.  This means that you can
+  switch the error mode temporarily and return to callback mode
+  without specifying the callback function again.  A string
+  value represents a function, a two-element array with an
+  object at index 0 and a string at index 1 represents a
+  method.
+ </simpara>
+ <para>
+  Again, don't set this variable directly, call
+  <function>PEAR::setErrorHandling</function> as a static
+  method like this:
+  <informalexample>
+   <programlisting role="php">
 <![CDATA[
 PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, "my_error_handler");
 ]]>
       </programlisting>
-	 </informalexample>
-	</para>
-	<para>
-	 Here is an example of how you can switch back and forth
-	 without specifying the callback function again:
-	 <informalexample>
-	  <programlisting role="php">
+  </informalexample>
+ </para>
+ <para>
+  Here is an example of how you can switch back and forth
+  without specifying the callback function again:
+  <informalexample>
+   <programlisting role="php">
 <![CDATA[
 PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, "my_function_handler");
 do_some_stuff();
@@ -352,8 +352,8 @@
 // now we're back to using my_function_handler again
 ]]>
 </programlisting>
-	 </informalexample>
-	</para>
+  </informalexample>
+ </para>
        </listitem>
       </varlistentry>
      </variablelist>


Property changes on: pear/peardoc/trunk/en/core/pear/pear/intro.xml
___________________________________________________________________
Added: svn:keywords
   + Id Rev Revision Date LastChangedDate LastChangedRevision Author LastChangedBy HeadURL URL
Added: svn:eol-style
   + native

Modified: pear/peardoc/trunk/en/core/pear/pear-exception/intro.xml
===================================================================
--- pear/peardoc/trunk/en/core/pear/pear-exception/intro.xml	2011-06-12 03:01:12 UTC (rev 312080)
+++ pear/peardoc/trunk/en/core/pear/pear-exception/intro.xml	2011-06-12 03:34:49 UTC (rev 312081)
@@ -70,8 +70,8 @@
 require_once 'PEAR/Exception.php';

 class Test {
-	function foo() {
-		throw new PEAR_Exception('Error Message', ERROR_CODE);
+ function foo() {
+  throw new PEAR_Exception('Error Message', ERROR_CODE);
     }
 }



Property changes on: pear/peardoc/trunk/en/core/pear/pear-exception/intro.xml
___________________________________________________________________
Added: svn:keywords
   + Id Rev Revision Date LastChangedDate LastChangedRevision Author LastChangedBy HeadURL URL
Added: svn:eol-style
   + native