@@ 21-50 (lines=30) @@ | ||
18 | //------------------------------------------------------// |
|
19 | // クラス定義 |
|
20 | //------------------------------------------------------// |
|
21 | class Sample1 extends \Risoluto\RisolutoControllerBase implements \Risoluto\RisolutoControllerInterface |
|
22 | { |
|
23 | // View関連の処理を使用する |
|
24 | use \Risoluto\RisolutoViewTrait; |
|
25 | ||
26 | /** |
|
27 | * play() |
|
28 | * |
|
29 | * 主処理を行う |
|
30 | * |
|
31 | * @access public |
|
32 | * |
|
33 | * @param void |
|
34 | * |
|
35 | * @return void なし |
|
36 | */ |
|
37 | public function play() |
|
38 | { |
|
39 | // ユーザ定義のライブラリコール例 |
|
40 | \RisolutoUserLibs\SampleLibs::sampleMethod(); |
|
41 | ||
42 | // ヘッダ情報のセット |
|
43 | $header = $this->getDefaultHeader(); |
|
44 | $header = $this->replaceHeader( $header, 'robots', 'NOINDEX,NOFOLLOW' ); |
|
45 | ||
46 | // テンプレートエンジン関連の処理 |
|
47 | $assign_value = [ 'header' => $header ]; |
|
48 | $this->risolutoView( $assign_value ); |
|
49 | } |
|
50 | } |
@@ 21-50 (lines=30) @@ | ||
18 | //------------------------------------------------------// |
|
19 | // クラス定義 |
|
20 | //------------------------------------------------------// |
|
21 | class Sample3 extends \Risoluto\RisolutoControllerBase implements \Risoluto\RisolutoControllerInterface |
|
22 | { |
|
23 | // View関連の処理を使用する |
|
24 | use \Risoluto\RisolutoViewTrait; |
|
25 | ||
26 | /** |
|
27 | * play() |
|
28 | * |
|
29 | * 主処理を行う |
|
30 | * |
|
31 | * @access public |
|
32 | * |
|
33 | * @param void |
|
34 | * |
|
35 | * @return void なし |
|
36 | */ |
|
37 | public function play() |
|
38 | { |
|
39 | // ユーザ定義のライブラリコール例 |
|
40 | \RisolutoUserLibs\SampleLibs::sampleMethod(); |
|
41 | ||
42 | // ヘッダ情報のセット |
|
43 | $header = $this->getDefaultHeader(); |
|
44 | $header = $this->replaceHeader( $header, 'robots', 'NOINDEX,NOFOLLOW' ); |
|
45 | ||
46 | // テンプレートエンジン関連の処理 |
|
47 | $assign_value = [ 'header' => $header ]; |
|
48 | $this->risolutoView( $assign_value ); |
|
49 | } |
|
50 | } |