CakePHP 4.0の概要
CakePHP 4.0 Overview
グローバル関数の要約
Global functions summary
-
__()
見つかった場合、翻訳された文字列を返します。 それ以外の場合は、送信されたメッセージ。
Returns a translated string if one is found; Otherwise, the submitted message.
-
__d()
単一のメッセージ検索で現在のドメインをオーバーライドできます。
Allows you to override the current domain for a single message lookup.
-
__dn()
単一の複数メッセージルックアップで現在のドメインを上書きできます。
Allows you to override the current domain for a single plural message lookup.
-
__dx()
単一のメッセージ検索で現在のドメインをオーバーライドできます。
Allows you to override the current domain for a single message lookup.
-
__dxn()
カウント$countの$singularおよび$pluralで識別される正しい複数形のメッセージを返します。
Returns correct plural form of message identified by $singular and $plural for count $count.
-
__n()
カウント$countの$singularおよび$pluralで識別される正しい複数形のメッセージを返します。
Returns correct plural form of message identified by $singular and $plural for count $count.
-
__x()
見つかった場合、翻訳された文字列を返します。 それ以外の場合は、送信されたメッセージ。
Returns a translated string if one is found; Otherwise, the submitted message.
-
__xn()
カウント $count の $singular および $plural で識別される正しい複数形のメッセージを返します。
Returns correct plural form of message identified by $singular and $plural for count $count.
-
breakpoint()
評価可能なコードをインタラクティブデバッガーの起動PsySHに返すコマンド eval(\Psy\sh()); と同じように機能します。 psy/psysh をプロジェクトにロードする必要があります
Command to return the eval-able code to startup PsySH in interactive debugger Works the same way as eval(\Psy\sh()); psy/psysh must be loaded in your project
-
collection()
渡された引数をラップする新しい Cake\Collection\Collection オブジェクトを返します。
Returns a new Cake\Collection\Collection object wrapping the passed argument.
-
dd()
指定された変数に関するデバッグ情報を出力し、死にます。
Prints out debug information about given variable and dies.
-
debug()
指定された変数に関するデバッグ情報を出力し、渡された変数を返します。
Prints out debug information about given variable and returns the variable that was passed.
-
deprecationWarning()
非推奨の警告を出力するヘルパーメソッド
Helper method for outputting deprecation warnings
-
env()
利用可能なソースから環境変数を取得し、サポートされていない、または一貫性のない環境変数(つまり、IISのDOCUMENT_ROOT、またはCGIモードのSCRIPT_NAME)のエミュレーションを提供します。 また、いくつかの追加のカスタム環境情報を公開します。
Gets an environment variable from available sources, and provides emulation for unsupported or inconsistent environment variables (i.e. DOCUMENT_ROOT on IIS, or SCRIPT_NAME in CGI mode). Also exposes some additional custom environment information.
-
getTypeName()
オブジェクトではないオブジェクトクラスまたは変数タイプを返します
Returns the objects class or var type of it's not an object
-
h()
htmlspecialcharsの簡易メソッド。
Convenience method for htmlspecialchars.
-
namespaceSplit()
名前空間をクラス名から分割します。
Split the namespace from the classname.
-
pj()
json pretty printコンビニエンス関数。
json pretty print convenience function.
-
pluginSplit()
ドット構文プラグイン名をプラグインとクラス名に分割します。
Splits a dot syntax plugin name into its plugin and class name.
-
pr()
print_r() コンビニエンス関数。
print_r() convenience function.
-
stackTrace()
指定されたオプションに基づいてスタックトレースを出力します。
Outputs a stack trace based on the supplied options.
-
triggerWarning()
E_USER_WARNINGをトリガーします。
Triggers an E_USER_WARNING.
グローバル定数の要約
Global constants summary
- DAY
-
DS
DSをDIRECTORY_SEPARATORの短縮形として定義します。
Defines DS as short form of DIRECTORY_SEPARATOR.
- HOUR
- MINUTE
- MONTH
- SECOND
- WEEK
- YEAR