-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathRegistrationBlockTabsComponent.php
More file actions
47 lines (45 loc) · 1.24 KB
/
RegistrationBlockTabsComponent.php
File metadata and controls
47 lines (45 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
/**
* Registration BlockTabs Component
*
* @author Ryuji AMANO <ryuji@ryus.co.jp>
* @link http://www.netcommons.org NetCommons Project
* @license http://www.netcommons.org/license.txt NetCommons License
*/
/**
* Class RegistrationBlockTabsComponent
*/
class RegistrationBlockTabsComponent extends Component {
/**
* initialize BlockTabsヘルパの設定
*
* @param Controller $controller コントローラ
* @return void
*/
public function initialize(Controller $controller) {
$controller->helpers['Blocks.BlockTabs'] = array(
'mainTabs' => array(
'block_index' => array(
'url' => array('controller' => 'registration_blocks')
),
),
'blockTabs' => array(
'block_settings' => array(
'url' => array('controller' => 'registration_edit', 'action' =>
'edit_question', 'q_mode' => 'setting')
),
'role_permissions' => array(
'url' => array('controller' => 'registration_block_role_permissions')
),
'mail_settings' => array(
'url' => array('controller' => 'registration_mail_settings')
),
'answer_list' => array(
'url' => array('controller' => 'registration_blocks', 'action' =>
'answer_list'),
'label' => ['registrations', 'Answer List'],
),
),
);
}
}