svn: /phpdoc/en/trunk/ language/oop5/autoload.xml reference/classobj/functions/autoload.xml reference/spl/functions/spl-autoload-register.xml
| From: | Jakub Vrana | Date: | Thu, 12 Jan 2012 15:04:13 +0000 |
| Subject: | svn: /phpdoc/en/trunk/ language/oop5/autoload.xml reference/classobj/functions/autoload.xml reference/spl/functions/spl-autoload-register.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-9432@lists.php.net to get a copy of this message | ||
vrana Thu, 12 Jan 2012 15:04:13 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=322137
Log:
Function entry for __autoload
Changed paths:
U phpdoc/en/trunk/language/oop5/autoload.xml
A phpdoc/en/trunk/reference/classobj/functions/autoload.xml
U phpdoc/en/trunk/reference/spl/functions/spl-autoload-register.xml
Modified: phpdoc/en/trunk/language/oop5/autoload.xml
===================================================================
--- phpdoc/en/trunk/language/oop5/autoload.xml 2012-01-12 15:01:15 UTC (rev 322136)
+++ phpdoc/en/trunk/language/oop5/autoload.xml 2012-01-12 15:04:13 UTC (rev 322137)
@@ -2,10 +2,6 @@
<!-- $Revision$ -->
<sect1 xml:id="language.oop5.autoload" xmlns="http://docbook.org/ns/docbook">
<title>Autoloading Classes</title>
- <methodsynopsis xml:id="function.autoload">
- <type>void</type><methodname>__autoload</methodname>
-
<methodparam><type>string</type><parameter>class</parameter></methodparam>
- </methodsynopsis>
<para>
Many developers writing object-oriented applications create
one PHP source file per-class definition. One of the biggest
@@ -14,7 +10,7 @@
</para>
<para>
In PHP 5, this is no longer necessary. You may define an
- __autoload function which is automatically
+ <function>__autoload</function> function which is automatically
called in case you are trying to use a class/interface which hasn't been
defined yet. By calling this function the scripting engine is given
a last chance to load the class before PHP fails with an error.
Added: phpdoc/en/trunk/reference/classobj/functions/autoload.xml
===================================================================
--- phpdoc/en/trunk/reference/classobj/functions/autoload.xml (rev 0)
+++ phpdoc/en/trunk/reference/classobj/functions/autoload.xml 2012-01-12 15:04:13 UTC (rev 322137)
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision$ -->
+
+<refentry xml:id="function.autoload" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink">
+ <refnamediv>
+ <refname>__autoload</refname>
+ <refpurpose>Attempt to load undefined class</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+ &reftitle.description;
+ <methodsynopsis>
+ <type>void</type><methodname>__autoload</methodname>
+
<methodparam><type>string</type><parameter>class</parameter></methodparam>
+ </methodsynopsis>
+ <para>
+ You can define this function to enable <link
+ linkend="language.oop5.autoload">classes autoloading</link>.
+ </para>
+
+ </refsect1>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <variablelist>
+ <varlistentry>
+ <term><parameter>class</parameter></term>
+ <listitem>
+ <para>
+ Name of the class to load
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+ &reftitle.returnvalues;
+ <para>
+ &return.void;
+ </para>
+ </refsect1>
+
+ <refsect1 role="seealso">
+ &reftitle.seealso;
+ <para>
+ <simplelist>
+ <member><function>spl_autoload_register</function></member>
+ </simplelist>
+ </para>
+ </refsect1>
+
+</refentry>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:1
+sgml-indent-data:t
+indent-tabs-mode:nil
+sgml-parent-document:nil
+sgml-default-dtd-file:"~/.phpdoc/manual.ced"
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+vim600: syn=xml fen fdm=syntax fdl=2 si
+vim: et tw=78 syn=sgml
+vi: ts=1 sw=1
+-->
Property changes on: phpdoc/en/trunk/reference/classobj/functions/autoload.xml
___________________________________________________________________
Added: svn:keywords
+ Id Rev Revision Date LastChangedDate LastChangedRevision Author LastChangedBy HeadURL URL
Added: svn:eol-style
+ native
Modified: phpdoc/en/trunk/reference/spl/functions/spl-autoload-register.xml
===================================================================
--- phpdoc/en/trunk/reference/spl/functions/spl-autoload-register.xml 2012-01-12 15:01:15 UTC (rev
322136)
+++ phpdoc/en/trunk/reference/spl/functions/spl-autoload-register.xml 2012-01-12 15:04:13 UTC (rev
322137)
@@ -140,6 +140,16 @@
</example>
</para>
</refsect1>
+
+ <refsect1 role="seealso">
+ &reftitle.seealso;
+ <para>
+ <simplelist>
+ <member><function>__autoload</function></member>
+ </simplelist>
+ </para>
+ </refsect1>
+
</refentry>
<!-- Keep this comment at the end of the file