このページの2つのバージョン間の差分を表示します。
次のリビジョン | 前のリビジョン 次のリビジョン 両方とも次のリビジョン | ||
apricot:usage:ja:utility [2020/07/29 13:34] tanaka 作成 |
apricot:usage:ja:utility [2020/08/05 10:34] tanaka [boilerplates.php] |
||
---|---|---|---|
行 6: | 行 6: | ||
--- // | --- // | ||
- | [[apricot: | + | [[apricot: |
目次 | 目次 | ||
+ | * [[apricot: | ||
* [[apricot: | * [[apricot: | ||
+ | * [[apricot: | ||
* [[apricot: | * [[apricot: | ||
* [[apricot: | * [[apricot: | ||
行 16: | 行 18: | ||
* [[apricot: | * [[apricot: | ||
* [[apricot: | * [[apricot: | ||
- | * [[apricot: | ||
* Apricot ユーティリティ | * Apricot ユーティリティ | ||
行 22: | 行 23: | ||
===== ボイラープレート ===== | ===== ボイラープレート ===== | ||
- | >TODO | + | |
+ | ==== boilerplates.php ==== | ||
+ | |||
+ | ^関数^機能^ | ||
+ | |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_has($dot = null)|Checks if an application setting key is present.\\ \\ アプリケーション設定キーが存在するかどうかを確認します。| | ||
+ | |project_dir($path = null): | ||
+ | |config_dir($path = null): | ||
+ | |assets_dir($path = null): | ||
+ | |var_dir($path = null): | ||
+ | |public_dir($path = null): | ||
+ | |url($path = null): | ||
+ | |url_ver(string $filename)|Returns a file URL with the application version.\\ \\ アプリケーションのバージョンを含むファイルURLを返します。| | ||
+ | |route($path = null): | ||
+ | |controllerName(): | ||
+ | |actionName(): | ||
+ | |config($key, | ||
+ | |<nowiki>__</ | ||
+ | |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)を返します。| | ||
+ | |queryString(string $key, $default=null)|Returns the QueryString($_GET) data specified by the key.\\ \\ キーで指定されたQueryString($_GET)データを返します。| | ||
+ | |session(string $key, $default=null)|Returns the session data($_SESSION) specified by the key.\\ \\ キーで指定されたセッションデータ($_SESSION)を返します。| | ||
+ | |flash(string $key, $default=null)|Returns the flash data specified by the key.\\ \\ キーで指定されたフラッシュデータを返します。| | ||
+ | |cookie(string $key, $default=null)|Returns the cookie data($_COOKIE) specified by the key.\\ \\ キーで指定されたcookieデータ($_COOKIE)を返します。| | ||
+ | |render(string $view=null, array $variables=[]): | ||
+ | |redirect(string $url): | ||
+ | |old(string $key, $default = null)|Returns the old input value flushed to the session, specified by the key.キーで指定された、セッションにフラッシュされた古い入力値を返します| | ||
+ | |back(): | ||
+ | |errors(): | ||
\\ | \\ | ||