Skip to content

Commit ddf5445

Browse files
committed
docs: add "// ..." to sample code
To make it clear that only a part of the code is shown.
1 parent 9bf27a1 commit ddf5445

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

user_guide_src/source/models/model/050.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
class MyModel extends Model
88
{
9+
// ...
10+
911
protected function hashPassword(array $data)
1012
{
1113
if (! isset($data['data']['password'])) {

user_guide_src/source/models/model/051.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66

77
class MyModel extends Model
88
{
9+
// ...
10+
911
protected $beforeInsert = ['hashPassword'];
1012
protected $beforeUpdate = ['hashPassword'];
13+
14+
// ...
1115
}

user_guide_src/source/models/model/052.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,9 @@
66

77
class MyModel extends Model
88
{
9+
// ...
10+
911
protected $allowCallbacks = false;
12+
13+
// ...
1014
}

user_guide_src/source/models/model/054.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
class MyModel extends Model
88
{
9+
// ...
10+
911
protected $beforeFind = ['checkCache'];
1012

1113
// ...

0 commit comments

Comments
 (0)