Ground Sunlight

Windowsで作る - PHPプログラミングの開発環境

ユーザ用ツール

サイト用ツール


apricot:usage:ja:utility

差分

このページの2つのバージョン間の差分を表示します。

この比較画面にリンクする

次のリビジョン
前のリビジョン
次のリビジョン 両方とも次のリビジョン
apricot:usage:ja:utility [2020/07/29 13:34]
tanaka 作成
apricot:usage:ja:utility [2020/08/05 12:33]
tanaka [boilerplates.php]
行 6: 行 6:
  --- //[[http://www.y2sunlight.com|y2sunlight]] 2020-07-29//  --- //[[http://www.y2sunlight.com|y2sunlight]] 2020-07-29//
  
-[[apricot:usage:ja|Apricotの使用法 に戻る]]+[[apricot:usage:ja|Apricot Document に戻る]]
  
 目次 目次
  
 +  * [[apricot:usage:ja:features|Apricot 特徴と概要]]
   * [[apricot:usage:ja:config|Apricot 配置と構成]]   * [[apricot:usage:ja:config|Apricot 配置と構成]]
 +  * [[apricot:usage:ja:errors-logging|Apricot ログとエラー処理]]
   * [[apricot:usage:ja:http|Apricot リクエストとレスポンス]]   * [[apricot:usage:ja:http|Apricot リクエストとレスポンス]]
   * [[apricot:usage:ja:frontend|Apricot フロントエンド]]   * [[apricot:usage:ja:frontend|Apricot フロントエンド]]
行 16: 行 18:
   * [[apricot:usage:ja:middleware|Apricot ミドルウェア]]   * [[apricot:usage:ja:middleware|Apricot ミドルウェア]]
   * [[apricot:usage:ja:controller|Apricot コントローラ]]   * [[apricot:usage:ja:controller|Apricot コントローラ]]
-  * [[apricot:usage:ja:errors-logging|Apricot ログとエラー処理]] 
   * Apricot ユーティリティ   * Apricot ユーティリティ
  
行 22: 行 23:
  
 ===== ボイラープレート ===== ===== ボイラープレート =====
->TODO+ 
 +==== boilerplates.php ==== 
 + 
 +^関数^機能^ 
 +|env($key, $default = null)|環境変数(.envファイル設定値)の取得| 
 +|abort(int $code, string $message=null)|HTTP例外(400,500番台)の発生| 
 +|app($dot = null, $default=null)|Returns the value of the application setting specified by the dot-notation key.\\ \\ ドット表記キーで指定されたアプリケーション設定の値を返します。| 
 +|app_has($dot = null)|Checks if an application setting key is present.\\ \\ アプリケーション設定キーが存在するかどうかを確認します。| 
 +|project_dir($path = null):string|Returns the full pathname in the project directory or its child directory.\\ \\ プロジェクトディレクトリまたはその子ディレクトリの完全パス名を返します。| 
 +|config_dir($path = null):string|Returns the full pathname in the config directory or its child directory.\\ \\ configディレクトリまたはその子ディレクトリの完全パス名を返します。| 
 +|assets_dir($path = null):string|Returns the full pathname in the assets directory or its child directory.\\ \\ アセットディレクトリまたはその子ディレクトリの完全パス名を返します。| 
 +|var_dir($path = null):string|Returns the full pathname in the var directory or its child directory.\\ \\ varディレクトリまたはその子ディレクトリの完全パス名を返します。| 
 +|public_dir($path = null):string|Returns the full pathname in the public directory or its child directory.\\ \\ パブリックディレクトリまたはその子ディレクトリの完全パス名を返します。| 
 +|url($path = null):string|Returns the application URL.\\ \\ アプリケーションのURLを返します。| 
 +|url_ver(string $filename)|Returns a file URL with the application version.\\ \\ アプリケーションのバージョンを含むファイルURLを返します。| 
 +|route($path = null):string|Returns the routing path.\\ \\ ルーティングパスを返します。| 
 +|controllerName():string|Returns the current controller name.\\ \\ 現在のコントローラー名を返します。| 
 +|actionName():string|Returns the current action name.\\ \\ 現在のアクション名を返します。| 
 +|config($key, $default = null)|Returns the value of the configuration Variable specified by the dot-notation key.\\ \\ ドット表記キーで指定された構成変数の値を返します。| 
 +|<nowiki>__</nowiki>($key, $params = [])|Returns the translated message specified by the dot-notation key.\\ \\ ドット表記キーで指定された翻訳されたメッセージを返します。| 
 +|inputLabels\\ (string $message_key):array|フォームデータのラベル配列を取得| 
 +|input\\ (string $key, $default=null)|フォームデータを取得| 
 +|queryString\\ (string $key, $default=null)|クエリ文字列を取得| 
 +|session\\ (string $key, $default=null)|セッション変数を取得| 
 +|flash\\ (string $key, $default=null)|フラッシュ変数を取得| 
 +|cookie\\ (string $key, $default=null)|クッキー変数を取得| 
 +|render\\ (string $view=null, array $variables=[])\\ :Apricot\Foundation\Response\RenderResponse|RenderResponseの生成 \\ テンプレート名とテンプレート変数を指定します| 
 +|redirect\\ (string $url)\\ :Apricot\Foundation\Response\RedirectResponse|RedirectResponseの生成\\ リダイレクトURLを指定します| 
 +|old\\ (string $key, $default = null)|キーを指定して前回の入力値を取得します| 
 +|back():string|前回のURIを取得します| 
 +|errors():Apricot\Foundation\ErrorBag|前回のエラーバッグを取得します|
  
 \\ \\
  
apricot/usage/ja/utility.txt · 最終更新: 2020/09/03 13:47 by y2sunlight