/
Component.php
40 lines (40 loc) · 1.77 KB
/
Component.php
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
<?php
class Kwc_User_Directory_Component extends Kwc_Directories_ItemPage_Directory_Component
{
public static function getSettings($param = null)
{
$ret = parent::getSettings($param);
$ret['generators']['detail']['class'] = 'Kwc_User_Directory_Generator';
$ret['generators']['detail']['component'] = 'Kwc_User_Detail_Component';
$ret['generators']['detail']['model'] = Kwf_Registry::get('config')->user->model;
$ret['generators']['detail']['dbIdShortcut'] = 'users_';
$ret['generators']['detail']['filenameColumn'] = 'nickname';
$ret['generators']['detail']['nameColumn'] = 'nickname';
$ret['generators']['register'] = array(
'class' => 'Kwf_Component_Generator_Page_Static',
'component' => 'Kwc_User_Register_Component',
'name' => trlKwfStatic('Register')
);
$ret['generators']['edit'] = array(
'class' => 'Kwf_Component_Generator_Page_Static',
'component' => 'Kwc_User_Edit_Component',
'name' => trlKwfStatic('Edit Profile')
);
$ret['generators']['login'] = array(
'class' => 'Kwf_Component_Generator_Page_Static',
'component' => 'Kwc_User_Login_Component',
'name' => trlKwfStatic('Login')
);
$ret['generators']['lostPassword'] = array(
'class' => 'Kwf_Component_Generator_Page_Static',
'component' => 'Kwc_User_LostPassword_Component',
'name' => trlKwfStatic('Lost Password')
);
$ret['generators']['activate'] = array(
'class' => 'Kwf_Component_Generator_Page_Static',
'component' => 'Kwc_User_Activate_Component',
'name' => trlKwfStatic('Activate')
);
return $ret;
}
}