このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン 次のリビジョン 両方とも次のリビジョン | ||
apricot:usage:ja:utility [2020/08/05 10:33] tanaka [ボイラープレート] |
apricot:usage:ja:utility [2020/08/20 14:02] y2sunlight [Apricot ユーティリティ] |
||
---|---|---|---|
行 6: | 行 6: | ||
--- // | --- // | ||
- | [[apricot: | + | [[apricot: |
目次 | 目次 | ||
行 15: | 行 15: | ||
* [[apricot: | * [[apricot: | ||
* [[apricot: | * [[apricot: | ||
- | * [[apricot: | + | * [[apricot: |
+ | * [[apricot: | ||
* [[apricot: | * [[apricot: | ||
* [[apricot: | * [[apricot: | ||
行 29: | 行 30: | ||
|env($key, $default = null)|環境変数(.envファイル設定値)の取得| | |env($key, $default = null)|環境変数(.envファイル設定値)の取得| | ||
|abort(int $code, string $message=null)|HTTP例外(400, | |abort(int $code, string $message=null)|HTTP例外(400, | ||
- | |||
- | ^関数^機能^ | ||
- | |env($key, $default = null)|Returns the value of the environment variable specified by the key.\\ \\ キーで指定された環境変数の値を返します。| | ||
- | |abort(int $code, string $message=null)|Throws an HTTP exception.\\ \\ HTTP例外をスローします。| | ||
|app($dot = null, $default=null)|Returns the value of the application setting specified by the dot-notation key.\\ \\ ドット表記キーで指定されたアプリケーション設定の値を返します。| | |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.\\ \\ アプリケーション設定キーが存在するかどうかを確認します。| | |app_has($dot = null)|Checks if an application setting key is present.\\ \\ アプリケーション設定キーが存在するかどうかを確認します。| | ||
行 47: | 行 44: | ||
|config($key, | |config($key, | ||
|< | |< | ||
- | |inputLabels(string $message_key): | + | |inputLabels\\ (string $message_key): |
- | |input(string $key, $default=null)|Returns the input data($_GET or $_POST depending on the post method) specified by the key.\\ \\ キーで指定された入力データ(post メソッドに応じて $_GET または $_POST)を返します。| | + | |input\\ (string $key, $default=null)|フォームデータを取得| |
- | |queryString(string $key, $default=null)|Returns the QueryString($_GET) data specified by the key.\\ \\ キーで指定されたQueryString($_GET)データを返します。| | + | |queryString\\ (string $key, $default=null)|クエリ文字列を取得| |
- | |session(string $key, $default=null)|Returns the session data($_SESSION) specified by the key.\\ \\ キーで指定されたセッションデータ($_SESSION)を返します。| | + | |session\\ (string $key, $default=null)|セッション変数を取得| |
- | |flash(string $key, $default=null)|Returns the flash data specified by the key.\\ \\ キーで指定されたフラッシュデータを返します。| | + | |flash\\ (string $key, $default=null)|フラッシュ変数を取得| |
- | |cookie(string $key, $default=null)|Returns the cookie data($_COOKIE) specified by the key.\\ \\ キーで指定されたcookieデータ($_COOKIE)を返します。| | + | |cookie\\ (string $key, $default=null)|クッキー変数を取得| |
- | |render(string $view=null, array $variables=[]): | + | |render\\ (string $view=null, array $variables=[])\\ : |
- | |redirect(string $url): | + | |redirect\\ (string $url)\\ : |
- | |old(string $key, $default = null)|Returns the old input value flushed to the session, specified by the key.キーで指定された、セッションにフラッシュされた古い入力値を返します| | + | |old\\ (string $key, $default = null)|キーを指定して前回の入力値を取得します| |
- | |back(): | + | |back(): |
- | |errors(): | + | |errors(): |
\\ | \\ | ||