1 | <?php |
||
2 | /** |
||
3 | * @package content |
||
4 | */ |
||
5 | /** |
||
6 | * The default Logout page will redirect the user |
||
7 | * to the Homepage of `URL` |
||
8 | */ |
||
9 | class contentLogout extends HTMLPage |
||
0 ignored issues
–
show
|
|||
10 | { |
||
11 | public function build() |
||
12 | { |
||
13 | $this->view(); |
||
14 | } |
||
15 | |||
16 | public function view() |
||
17 | { |
||
18 | Administration::instance()->logout(); |
||
19 | redirect(URL); |
||
0 ignored issues
–
show
|
|||
20 | } |
||
21 | } |
||
22 |
Classes in PHP are usually named in CamelCase.
In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. The whole name starts with a capital letter as well.
Thus the name database provider becomes
DatabaseProvider
.