« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 39 for autoload (0.002 sec.)
spl_autoload_register — 指定した関数を __autoload() の実装として登録する | PHP ... 12185
spl_autoload_register (PHP 5 >= 5.1.0, PHP 7, PHP 8) spl_autoload_register — 指定した関数を __autoload() の実装として登録する 説明 function spl_autoload_register ( ? callable $callback = null , bool $throw = true , bool $prepend = false ): ... bool 指定した関数を、spl が提供する __autoload キューに登録します。 キューがまだアクティブになっていない場合は、まずアクティブにします。 もしあなたのコード中に __autoloa ... d() 関数が存在するのなら、 それを明示的に __autoload キューに登録しなければなりません。 なぜなら、 spl_autoload_register() は、 spl_autoload() あるいは spl_autoload_call() によ ... って __autoload() 関数のエンジンキャッシュを効率的に置き換えるからです。 複数の autoload 関数が必要となる場合でも spl_autoload_register() ...
https://man.mtool.work/php/8.3/function.spl-autoload-register.html
SPL 関数 | PHP 8.3 11324
SPL 関数 目次 class_implements — 与えられたクラスあるいはインターフェイスが実装しているインターフェイスを返す class_parents — 与えられたクラスの親クラスを返す class_uses — 指定したクラスが使っているトレイトを返す iterator_apply — ユーザー関 ... の要素でコールする iterator_count — イテレータにある要素をカウントする iterator_to_array — イテレータを配列にコピーする spl_autoload — __autoload() のデフォルト実装 spl_autoload_call — 要求されたクラスを読み込むために、すべての登録済みの __autoload() 関数 ... を試す spl_autoload_extensions — spl_autoload 用のデフォルトの拡張子を登録し、それを返す spl_autoload_functions — すべての登録済み __autoload( ... ) 関数を返す spl_autoload_register — 指定した関数を __autoload() の実装として登録する spl_autoload_unregister — 指定した関数の、__autoload() の実装と ...
https://man.mtool.work/php/8.3/ref.spl.html
spl_autoload_unregister — 指定した関数の、__autoload() の実装としての登録を解除... 11073
spl_autoload_unregister (PHP 5 >= 5.1.0, PHP 7, PHP 8) spl_autoload_unregister — 指定した関数の、__autoload() の実装としての登録を解除する 説明 function spl_autoload_unregister ( callable $callback ): bool spl が提供する __autoload キューか ... ューがアクティブであり、かつこの関数の削除後にキューが空になった場合は キューが非アクティブ化されます。 この関数の結果として autoload キューが非アクティブになったとした場合に、 既存の __autoload 関数が再アクティブ化されることはありません。 パラメータ callb ... ack 登録を解除したい autoload 関数。 戻り値 成功した場合に true を、失敗した場合に false を返します。 変更履歴 バージョン 説明 8.5.0 全てのオートローダの ... 登録を解除するために、 spl_autoload_call() 関数をコールバック引数として渡すことは 非推奨になりました。 代わりに spl_autoload_functions() の戻り値を反復処理し、 ...
https://man.mtool.work/php/8.3/function.spl-autoload-unregister.html
spl_autoload_extensions — spl_autoload 用のデフォルトの拡張子を登録し、それを返... 10259
spl_autoload_extensions (PHP 5 >= 5.1.0, PHP 7, PHP 8) spl_autoload_extensions — spl_autoload 用のデフォルトの拡張子を登録し、それを返す 説明 function spl_autoload_extensions ( ? string $file_extensions = null ): string この関数は、 __autoload ... oad() 用の代替関数である spl_autoload() が使用するファイル拡張子を変更したり調べたりします。 注意 : ファイルの拡張子の間にスペースを入れるべきではありません。 パ ... 拡張子を変更するには、 新しい拡張子一覧をカンマ区切り文字列で表したものを引数に指定して、 この関数を実行します。 戻り値 spl_autoload() のデフォルト拡張子の一覧をカンマ区切り形式で返します。 変更履歴 バージョン 説明 8.0.0 file_extensions は、nullable になり ... ました。 例 例1 spl_autoload_extensions() の例 <?php spl_autoload_extensions ( ".php,.inc" ); ?> 他のマニュアルの関連ページ Linux JM zforce(1) Python m ...
https://man.mtool.work/php/8.3/function.spl-autoload-extensions.html
Standard PHP Library (SPL) | PHP 8.3 9977
Standard PHP Library (SPL) はじめに The Standard PHP Library (SPL) 拡張モジュールでは、 よくある問題を解決するためのインターフェイスやクラスを定義しています。 この拡張モジュールは、さまざまなデータ構造や汎用的な例外、イテレータ、 オブジェク ... の要素でコールする iterator_count — イテレータにある要素をカウントする iterator_to_array — イテレータを配列にコピーする spl_autoload — __autoload() のデフォルト実装 spl_autoload_call — 要求されたクラスを読み込むために、すべての登録済みの __autoload() 関数 ... を試す spl_autoload_extensions — spl_autoload 用のデフォルトの拡張子を登録し、それを返す spl_autoload_functions — すべての登録済み __autoload( ... ) 関数を返す spl_autoload_register — 指定した関数を __autoload() の実装として登録する spl_autoload_unregister — 指定した関数の、__autoload() の実装と ...
https://man.mtool.work/php/8.3/book.spl.html
spl_autoload_functions — すべての登録済み __autoload() 関数を返す | PHP 8.3 9804
spl_autoload_functions (PHP 5 >= 5.1.0, PHP 7, PHP 8) spl_autoload_functions — すべての登録済み __autoload() 関数を返す 説明 function spl_autoload_functions (): array すべての登録済み __autoload() 関数を取得します。 パラメータ この関数にはパ ... ラメータはありません。 戻り値 関数が何も登録されていなかったり、 autoload キューが有効になっていない場合は、 空の配列が返されます。 変更履歴 バージョン 説明 8.0.0 戻り値は常に配列になりました。 こ ... れより前のバージョンでは、 autoload キューが有効になっていない場合に false を返していました。 他のマニュアルの関連ページ Vim usr_52 DuckDB Nested Functions Li ...
https://man.mtool.work/php/8.3/function.spl-autoload-functions.html
クラスのオートローディング | PHP 8.3 9804
クラスのオートローディング オブジェクト指向アプリケーションを作成する開発者の多くは、 クラス定義毎に一つのPHPソースファイルを作成します。 最大の問題は、各スクリプトの先頭に、必要な読み込みを行う長いリストを 記述する必要があることです(各クラ ... スについて一つ)。 spl_autoload_register() 関数を使うと、 任意の数のオートローダーを登録でき、 クラスやインターフェイスが定義されていなくても自動的に読み込 ... ードできます。 これには、クラス、インターフェイス、トレイト、列挙型が含まれます。 警告 PHP 8.0.0 より前のバージョンでは、 __autoload() 関数でもクラスやインターフェイスのオートロードが可能でした。 しかし、この関数は spl_autoload_register() 関数に比べると柔 ... 軟性という点で劣っています。 そのため、 __autoload() 関数は PHP 7.2.0 で推奨されなくなり、 PHP 8.0.0 で削除されました。 注意 : 複数のオートローダーを複数回登録するために、 s ...
https://man.mtool.work/php/8.3/language.oop5.autoload.html
spl_autoload — __autoload() のデフォルト実装 | PHP 8.3 9554
spl_autoload (PHP 5 >= 5.1.0, PHP 7, PHP 8) spl_autoload — __autoload() のデフォルト実装 説明 function spl_autoload ( string $class , ? string $file_extensions = null ): void この関数は、 __autoload() のデフォルト実装として使用されることを意 ... 図しています。 ほかに何も指定されておらず、 spl_autoload_register() がパラメータなしでコールされた場合には、 その後の __autoload() のコール時には spl_autoload() が使用されます。 パ ...
https://man.mtool.work/php/8.3/function.spl-autoload.html
spl_autoload_call — 要求されたクラスを読み込むために、すべての登録済みの __auto... 9021
spl_autoload_call (PHP 5 >= 5.1.0, PHP 7, PHP 8) spl_autoload_call — 要求されたクラスを読み込むために、すべての登録済みの __autoload() 関数を試す 説明 function spl_autoload_call ( string $class ): void この関数は、登録済みの __autoload 関数 ...
https://man.mtool.work/php/8.3/function.spl-autoload-call.html
__autoload — 未定義のクラスのロードを試みる | PHP 8.3 8786
__autoload (PHP 5, PHP 7) __autoload — 未定義のクラスのロードを試みる 警告 この関数は PHP 7.2.0 で 非推奨 になり、PHP 8.0.0 で 削除 されました。この関数に頼らないことを強く推奨します。 説明 function __autoload ( string $class ): void この関 ... 、 クラスのオートローディング を有効にできます。 パラメータ class ロードするクラスの名前。 戻り値 値を返しません。 参考 spl_autoload_register() - 指定した関数を __autoload() の実装として登録する 他のマニュアルの関連ページ Vim usr_52 Linux JM dlopen(3) Lin ...
https://man.mtool.work/php/8.3/function.autoload.html
PREV 1 2 3 4 NEXT