現在のリクエスト に使われるstickysession値になります。The current request will be utlized.GetRequest()は現在のリクエスト オブジェクトを取得します。 GetRequest() retrieves the current request object. GetallheadersすべてのHTTPヘッダを現在のリクエスト から取得します。 Getallheaders Fetches all HTTP headers from the current request . フロントコントローラにおける現在のリクエスト オブジェクトの状態を。 And sets the state of the current request object in the front controller.
図16-5-データベースクエリのセクションは現在のリクエスト に対して実行されたクエリを表示する。 Figure 16-5- The database queries section shows queries executed for the current request . これらのメソッドはブラウザでの往復なしに現在のリクエスト を別のアクションに転送します。 These methods forward the current request to another action without a round-trip with the browser. Request関数は現在のリクエスト インスタンスを返すか、入力アイテムを取得します。 The request function returns the current request instance or obtains an input item:. 現在のリクエスト をフロントエンドのウェブサイトではなくコントロールパネルにルーティングするかどうかを決定するとき、Craftが探すURIセグメント。The URI segment Craft should look for when determining if the current request should route to the control panel rather than the front-end website. WasChangedメソッドは現在のリクエスト サイクル中、最後にモデルが保存されたときから属性に変化があったかを判定します。 The wasChanged method determines if any attributes were changed when the model was last saved within the current request cycle. 現在のリクエスト インスタンスが、サービスコンテナにより、自動的に注入されます。The current request instance will automatically be injected by the service container:. 場合により、例外をレポートする必要があるが、現在のリクエスト の処理を継続したい場合があります。 Sometimes you may need to report an exception but continue handling the current request . 以前は、arrayセッションに保存したデータは、現在のリクエスト 中でさえ取得できませんでした。 Previously, data stored in the array session could not be retrieved even during the current request . これらのオブジェクトはそれぞれ現在のリクエスト 、リクエストパラメーター、レスポンス、セッションに関連するデータを格納しています。 They contain data related to the current request , request parameters, response, and session. 図16-4で示されるように、現在のリクエスト に対してログメッセージを表示するには"logs"セクションをクリックします。 Click the"logs" section to reveal the log messages for the current request , as shown in Figure 16-4. 現在のリクエスト インスタンスは、サービスプロバイダーにより、自動的に注入されます。The current request instance will automatically be injected by the service container:.現在のリクエスト インスタンスが、サービスプロバイダーにより、自動的に注入されます。The current request instance will automatically be injected by the service container:.これは現在のリクエスト サイクル外で実行する必要のある、シンプルなタスクを扱うのに適しています。 This is great for quick, simple tasks that need to be executed outside of the current request cycle:. 図16-4-"logs"セクションは現在のリクエスト 用のログメッセージを表示する。 Figure 16-4- The"logs" section shows the log messages for the current request . Requestファサードで、コンテナにより結合されている現在のリクエスト へアクセスできます。例えば:。 The Request facade will grant you access to the current request that is bound in the container. For example:.現在のリクエスト がページ分割されたリストに含まれる特定ページのものかどうかを決定する際に、Craftが探す数値の前にある文字列。The string preceding a number which Craft will look for when determining if the current request is for a particular page in a paginated list of pages. 現在のリクエスト が指定した名前付きルートのものであるかを判定したい場合は、Routeインスタンスのnamedメソッドを使います。If you would like to determine if the current request was routed to a given named route, you may use the named method on a Route instance. コマンドバスは現在のリクエスト サイクル中で、同期的にジョブを実行するだけではなく、Laravelのキュージョブとして非同期に実行する重要な手法も提供しています。 The command bus is not just for synchronous jobs that run during the current request cycle, but also serves as the primary way to build queued jobs in Laravel. Stickyオプションstickyオプションはオプショナル値で、現在のリクエスト サイクル中にデータベースへ書き込まれたレコードを即時に読み込めるようにします。 The sticky Option The sticky option is an optional value that can be used to allow the immediate reading of records that have been written to the database during the current request cycle. 現在のリクエスト サイクル中に同期的に実行するジョブは、コマンドパターンを実装しているため、時に「コマンド」と呼ばれることがあります。Jobs that run synchronously during the current request are sometimes referred to as"commands" since they are an implementation of the command pattern. 通常、HTTPリクエストは、次のリクエストは完全に受け取られた現在のリクエスト に対するレスポンスのあとにだけ発行されるという形で、連続して発行されます。 Normally, HTTP requests are issued sequentially, with the next request being issued only after the response to the current request has been completely received. Commandsはアプリケーションにより、キューに投入されるジョブを表すと同時に、現在のリクエスト のライフサイクル中に、同期的に実行できるタスクを表します。 Commands represent jobs that can be queued by your application, as well as tasks that you can run synchronously within the current request lifecycle. Stickyオプションが有効で、現在のリクエスト サイクル中にデータベースに対して「書き込み(write)」処理が実行されると、すべての「読み込み(read)」操作で"write"接続が使われるようになります。 If the sticky option is enabled and a"write" operation has been performed against the database during the current request cycle, any further"read" operations will use the"write" connection. このメソッドはビーコンにパラメーターを追加したいプラグインによって使用されますが、ページの開発者が現在のリクエスト にタグをつけるために使う場合もあるかもしれません。 This method is used by plugins to add parameters to the beacon, but may also be used by the page developer to tag the current request . MatchesUrl()に渡される配列$contextには、現在のリクエスト に関する多くの役立つ情報が事前にセットされています。たとえばhostやブール値のis_secure、request_uri、および HTTPメソッドのmethodなどがあります。 The$context array passed to matchesUrl() is prepopulated with lot's of useful information about the current request , including the host, an is_secure boolean, the request_uri, the HTTP method and more.
より多くの例を表示
結果: 52 ,
時間: 0.0165
English
中文
عربى
Български
বাংলা
Český
Dansk
Deutsch
Ελληνικά
Español
Suomi
Français
עִברִית
हिंदी
Hrvatski
Magyar
Bahasa indonesia
Italiano
Қазақ
한국어
മലയാളം
मराठी
Bahasa malay
Nederlands
Norsk
Polski
Português
Română
Русский
Slovenský
Slovenski
Српски
Svenska
தமிழ்
తెలుగు
ไทย
Tagalog
Turkce
Українська
اردو
Tiếng việt