Skip to content

Commit 84bd058

Browse files
committed
fix: multiple broken links
1 parent de4d6b0 commit 84bd058

14 files changed

Lines changed: 603 additions & 119 deletions

File tree

.github/linkchecker-baseline.json

Lines changed: 538 additions & 78 deletions
Large diffs are not rendered by default.

docs/en/deployment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ keeping your code secure and your application safer. CakePHP applications
8282
should have the document root set to the application's `webroot`. This
8383
makes the application and configuration files inaccessible through a URL.
8484
Setting the document root is different for different webservers. See the
85-
[Url Rewriting](installation#url-rewriting) documentation for webserver specific
85+
[Url Rewriting](installation#without-url-rewriting) documentation for webserver specific
8686
information.
8787

8888
In all cases you will want to set the virtual host/domain's document to be

docs/en/orm/query-builder.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -339,60 +339,60 @@ For details, see the documentation for `Cake\Database\FunctionsBuilder`.
339339

340340
You can access existing wrappers for several SQL functions through `SelectQuery::func()`:
341341

342-
`rand()`
342+
`rand()`
343343
Generate a random value between 0 and 1 via SQL.
344344

345-
`sum()`
345+
`sum()`
346346
Calculate a sum. <span class="title-ref">Assumes arguments are literal values.</span>
347347

348-
`avg()`
348+
`avg()`
349349
Calculate an average. <span class="title-ref">Assumes arguments are literal values.</span>
350350

351-
`min()`
351+
`min()`
352352
Calculate the min of a column. <span class="title-ref">Assumes arguments are literal values.</span>
353353

354-
`max()`
354+
`max()`
355355
Calculate the max of a column. <span class="title-ref">Assumes arguments are literal values.</span>
356356

357-
`count()`
357+
`count()`
358358
Calculate the count. <span class="title-ref">Assumes arguments are literal values.</span>
359359

360-
`cast()`
360+
`cast()`
361361
Convert a field or expression from one data type to another.
362362

363-
`concat()`
363+
`concat()`
364364
Concatenate two values together. <span class="title-ref">Assumes arguments are bound parameters.</span>
365365

366-
`coalesce()`
366+
`coalesce()`
367367
Coalesce values. <span class="title-ref">Assumes arguments are bound parameters.</span>
368368

369-
`dateDiff()`
369+
`dateDiff()`
370370
Get the difference between two dates/times. <span class="title-ref">Assumes arguments are bound parameters.</span>
371371

372-
`now()`
372+
`now()`
373373
Defaults to returning date and time, but accepts 'time' or 'date' to return only
374374
those values.
375375

376-
`extract()`
376+
`extract()`
377377
Returns the specified data part from the SQL expression.
378378

379-
`dateAdd()`
379+
`dateAdd()`
380380
Add the time unit to the date expression.
381381

382-
`dayOfWeek()`
382+
`dayOfWeek()`
383383
Returns a FunctionExpression representing a call to SQL WEEKDAY function.
384384

385385
#### Window-Only Functions
386386

387387
These window-only functions contain a window expression by default:
388388

389-
`rowNumber()`
389+
`rowNumber()`
390390
Returns an Aggregate expression for the `ROW_NUMBER()` SQL function.
391391

392-
`lag()`
392+
`lag()`
393393
Returns an Aggregate expression for the `LAG()` SQL function.
394394

395-
`lead()`
395+
`lead()`
396396
Returns an Aggregate expression for the `LEAD()` SQL function.
397397

398398
When providing arguments for SQL functions, there are two kinds of parameters
@@ -1047,14 +1047,14 @@ WHERE (
10471047
The `QueryExpression` passed to the callback allows you to use both
10481048
**combinators** and **conditions** to build the full expression.
10491049

1050-
Combinators
1050+
Combinators
10511051
These create new `QueryExpression` objects and set how the conditions added
10521052
to that expression are joined together.
10531053

10541054
- `and()` creates new expression objects that joins all conditions with `AND`.
10551055
- `or()` creates new expression objects that joins all conditions with `OR`.
10561056

1057-
Conditions
1057+
Conditions
10581058
These are added to the expression and automatically joined together
10591059
depending on which combinator was used.
10601060

@@ -1445,7 +1445,7 @@ can be useful when you do not know whether you will get a scalar or array of
14451445
parameters. The `[]` suffix on any data type name indicates to the query
14461446
builder that you want the data handled as an array. If the data is not an array,
14471447
it will first be cast to an array. After that, each value in the array will
1448-
be cast using the [type system](../orm/database-basics#database-data-types). This works with
1448+
be cast using the [type system](../orm/database-basics#data-types). This works with
14491449
complex types as well. For example, you could take a list of DateTime objects
14501450
using:
14511451

docs/ja/controllers.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ CakePHP の規約に従うと、手動でビューを描画したり生成した
129129
`Controller::set()` を使って、ビューにデータを渡すことができます。
130130
コントローラーからどのビュークラスを使うか、どのビューを描画すべきか、を決めることもできます。
131131

132+
<a id="setting-view_variables"></a>
133+
132134
### ビュー変数の設定
133135

134136
`method` Cake\\Controller\\Controller::**set**(string $var, mixed $value)

docs/ja/controllers/components.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ CakePHP の中に含まれるコンポーネントの詳細については、各
1515
- [フォームの保護](../controllers/components/form-protection)
1616
- [HTTPキャッシュの確認](../controllers/components/check-http-cache)
1717

18+
<a id="configuring-components"></a>
19+
1820
## コンポーネントの設定
1921

2022
コアコンポーネントの多くは設定を必要としています。コンポーネントが設定を

docs/ja/controllers/request-response.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ CakePHP のリクエストオブジェクトは、入ってきたリクエスト
1010

1111
</div>
1212

13+
<a id="cake-request"></a>
14+
1315
## リクエスト
1416

1517
`class` Cake\\Http\\**ServerRequest**
@@ -708,6 +710,8 @@ $this->response = $this->response->withType('vcf');
708710
コールバックの中で設定したいと思うので、 `RequestHandlerComponent` が提供する
709711
ビューの自動切り替え機能を活用できます。
710712

713+
<a id="cake-response-file"></a>
714+
711715
### ファイルの送信
712716

713717
`method` Cake\\Http\\Response::**withFile**($path, $options = [])
@@ -742,10 +746,10 @@ $response = $this->response->withFile(
742746

743747
サポートされているオプションは次のとおりです。
744748

745-
name
749+
name
746750
name は、ユーザーに送信される代替ファイル名を指定することができます。
747751

748-
download
752+
download
749753
ヘッダーでダウンロードを強制するように設定する必要があるかどうかを示すブール値。
750754

751755
### 文字列をファイルとして送信

docs/ja/deployment.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ CakePHP のアプリケーションは、アプリケーションの `webroot`
8383
ドキュメントルートを指定する必要があります。これによってアプリケーション、
8484
設定のファイルが URL を通してアクセスすることができなくなります。
8585
ドキュメントルートの指定の仕方はウェブサーバーごとに異なります。
86-
ウェブサーバー特有の情報については [Url Rewriting](installation#url-rewriting) ドキュメントを見てください。
86+
ウェブサーバー特有の情報については [Url Rewriting](installation#without-url-rewriting) ドキュメントを見てください。
8787

8888
どの場合においても `webroot/` をバーチャルホスト(バーチャルドメイン)の
8989
ドキュメントルートに設定すべきでしょう。これは webroot ディレクトリーの外側のファイルを
@@ -97,6 +97,8 @@ CakePHP のアプリケーションは、アプリケーションの `webroot`
9797

9898
php composer.phar dumpautoload -o
9999

100+
<a id="symlink-assets"></a>
101+
100102
プラグインの画像や JavaScript、CSS ファイルなどの静的なアセットを扱う場合、
101103
`Dispatcher` を通すことはかなり非効率です。本番環境においては、次のように
102104
シンボリックリンクにすることを強くお勧めします。これは、 `plugin` シェルを

docs/ja/development/routing.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ greedy star, trailing star
120120

121121
</div>
122122

123+
<a id="routes-configuration"></a>
124+
123125
## ルートを接続<span id="connecting-routes"></span>
124126

125127
コードを `DRY` に保つために 'ルーティングスコープ' を使用してください。

docs/ja/orm/query-builder.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -358,43 +358,43 @@ $query->select(['count' => $query->func()->count('*')]);
358358

359359
多くのおなじみの関数が `func()` メソッドとともに作成できます:
360360

361-
`rand()`
361+
`rand()`
362362
0から1の間の乱数をSQLで生成します。
363363

364-
`sum()`
364+
`sum()`
365365
合計を算出します。 <span class="title-ref">引数はリテラル値として扱われます。</span>
366366

367-
`avg()`
367+
`avg()`
368368
平均値を算出します。 <span class="title-ref">引数はリテラル値として扱われます。</span>
369369

370-
`min()`
370+
`min()`
371371
カラムの最小値を算出します。 <span class="title-ref">引数はリテラル値として扱われます。</span>
372372

373-
`max()`
373+
`max()`
374374
カラムの最大値を算出します。 <span class="title-ref">引数はリテラル値として扱われます。</span>
375375

376-
`count()`
376+
`count()`
377377
件数を算出します。 <span class="title-ref">引数はリテラル値として扱われます。</span>
378378

379-
`concat()`
379+
`concat()`
380380
2つの値を結合します。 <span class="title-ref">引数はバインドパラメーターとして扱われます。</span>
381381

382-
`coalesce()`
382+
`coalesce()`
383383
Coalesce を算出します。 <span class="title-ref">引数はバインドパラメーターとして扱われます。</span>
384384

385-
`dateDiff()`
385+
`dateDiff()`
386386
2つの日にち/時間の差を取得します。 <span class="title-ref">引数はバインドパラメーターとして扱われます。</span>
387387

388-
`now()`
388+
`now()`
389389
デフォルトでは日付と時刻を返しますが、 'time' または 'date' を指定してこれらの値のみを返すこともできます。
390390

391-
`extract()`
391+
`extract()`
392392
SQL 式から特定の日付部分(年など)を返します。
393393

394-
`dateAdd()`
394+
`dateAdd()`
395395
日付式に単位時間を加算します。
396396

397-
`dayOfWeek()`
397+
`dayOfWeek()`
398398
SQL の WEEKDAY 関数を呼ぶ FunctionExpression を返します。
399399

400400
SQL 関数に渡す引数には、リテラルの引数と、バインドパラメーターの2種類がありえます。
@@ -699,14 +699,14 @@ WHERE (
699699
コールバックに渡される `QueryExpression` は完全な式を構築するために、
700700
**combinators****conditions** を使用します。
701701

702-
Combinators
702+
Combinators
703703
これらは新しい `QueryExpression` オブジェクトを作成し、
704704
その式に追加された条件をどのように結合するかを設定します。
705705

706706
- `and()` は、すべての条件を `AND` で結合する新しい式オブジェクトを作成します。
707707
- `or()` は、すべての条件を `OR` で結合する新しい式オブジェクトを作成します。
708708

709-
Conditions
709+
Conditions
710710
これらは式に追加され、どの組み合わせが使用されたかに応じて自動的に結合されます。
711711

712712
コールバック関数に渡される QueryExpression のデフォルトは `and()` です。 :
@@ -1060,7 +1060,7 @@ $query = $articles->find()
10601060
これは、パラメーターが単数か配列か判らない場合に便利です。データ型名の末尾に付く `[]` という接尾辞は、
10611061
扱いたいデータが配列であることをクエリービルダーに知らせます。
10621062
もしもデータが配列でなかったなら、まず、配列へとキャストされることになります。
1063-
その後、配列の各値は [type system](../orm/database-basics#database-data-types) を使ってキャストされることになります。
1063+
その後、配列の各値は [type system](../orm/database-basics#data-types) を使ってキャストされることになります。
10641064
これは複合型であっても同様に動きます。たとえば、DateTime オブジェクトのリストも使うことができます。 :
10651065

10661066
``` php

docs/ja/plugins.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -655,6 +655,8 @@ public function initialize(): void
655655

656656
同じテクニックはヘルパーとビヘイビアーにも使えます。
657657

658+
<a id="plugin-commands"></a>
659+
658660
## コマンド
659661

660662
プラグインは、 `console()` フックの中で、コマンドを登録することができます。

0 commit comments

Comments
 (0)