mirror of
https://github.com/php/doc-ja.git
synced 2026-04-29 02:53:11 +02:00
7d32629614
This reverts commit https://github.com/php/doc-en/commit/1fd2694499471fc5d806a422976c8e743e2a1bdb Actually, all was good with the first commit. The fact that the lower- cased FQN is searched, is already conveyed in the description of the `$file_extensions` parameter. https://github.com/php/doc-en/commit/61a690b59cad3464ab823f6d0a2b5a16c9ca584c
110 lines
3.2 KiB
XML
110 lines
3.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: 61a690b59cad3464ab823f6d0a2b5a16c9ca584c Maintainer: takagi Status: ready -->
|
|
<refentry xml:id="function.spl-autoload" xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>spl_autoload</refname>
|
|
<refpurpose>__autoload() のデフォルト実装</refpurpose>
|
|
</refnamediv>
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>void</type><methodname>spl_autoload</methodname>
|
|
<methodparam><type>string</type><parameter>class</parameter></methodparam>
|
|
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>file_extensions</parameter><initializer>&null;</initializer></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
この関数は、<function>__autoload</function> のデフォルト実装として使用されることを意図しています。
|
|
ほかに何も指定されておらず、<function>autoload_register</function>
|
|
がパラメータなしでコールされた場合には、
|
|
その後の <function>__autoload</function> のコール時にはこの関数が使用されます。
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>class</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
インスタンスを作成するクラス名 (および名前空間名)。
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>file_extensions</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
デフォルトでは、クラス名を小文字にして .inc および .php
|
|
を拡張子につけたファイル名のファイルが存在するかどうかを
|
|
すべてのインクルードパスから探します。
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
&return.void;
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="errors">
|
|
&reftitle.errors;
|
|
<para>
|
|
クラスが見つからず、かつそれ以外にオートローダーが登録されていない場合に
|
|
<classname>LogicException</classname> をスローします。
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="changelog">
|
|
&reftitle.changelog;
|
|
<para>
|
|
<informaltable>
|
|
<tgroup cols="2">
|
|
<thead>
|
|
<row>
|
|
<entry>&Version;</entry>
|
|
<entry>&Description;</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row>
|
|
<entry>8.0.0</entry>
|
|
<entry>
|
|
<parameter>file_extensions</parameter> は、nullable になりました。
|
|
</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</informaltable>
|
|
</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
|
|
-->
|