Skip to content

Commit

Permalink
docs: add "// ..." to sample code
Browse files Browse the repository at this point in the history
To make it clear that only a part of the code is shown.
  • Loading branch information
kenjis committed Apr 4, 2024
1 parent 9bf27a1 commit ddf5445
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions user_guide_src/source/models/model/050.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

class MyModel extends Model
{
// ...

protected function hashPassword(array $data)
{
if (! isset($data['data']['password'])) {
Expand Down
4 changes: 4 additions & 0 deletions user_guide_src/source/models/model/051.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

class MyModel extends Model
{
// ...

protected $beforeInsert = ['hashPassword'];
protected $beforeUpdate = ['hashPassword'];

// ...
}
4 changes: 4 additions & 0 deletions user_guide_src/source/models/model/052.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,9 @@

class MyModel extends Model
{
// ...

protected $allowCallbacks = false;

// ...
}
2 changes: 2 additions & 0 deletions user_guide_src/source/models/model/054.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

class MyModel extends Model
{
// ...

protected $beforeFind = ['checkCache'];

// ...
Expand Down

0 comments on commit ddf5445

Please sign in to comment.