Cheetah
modules
cheetah
world_map
install
installer.php
Go to the documentation of this file.
1
<?
php
2
8
ch_import
(
"ChWsbInstaller"
);
9
10
class
ChWmapInstaller
extends
ChWsbInstaller
11
{
12
function
__construct
(
$aConfig
)
13
{
14
parent::__construct(
$aConfig
);
15
}
16
17
function
install
($aParams)
18
{
19
$aResult
= parent::install($aParams);
20
21
if
(
$aResult
[
'result'
]) {
22
23
ChWsbService::call
(
'wmap'
,
'part_install'
, array(
'profiles'
, array(
24
'part'
=>
'profiles'
,
25
'title'
=>
'_Profiles'
,
26
'title_singular'
=>
'_Profile'
,
27
'icon'
=>
'map_marker_profiles.png'
,
28
'icon_site'
=>
'user'
,
29
'join_table'
=>
'Profiles'
,
30
'join_where'
=>
"AND `p`.`Status` = 'Active'"
,
31
'join_field_id'
=>
'ID'
,
32
'join_field_country'
=>
'Country'
,
33
'join_field_city'
=>
'City'
,
34
'join_field_state'
=>
''
,
35
'join_field_zip'
=>
'zip'
,
36
'join_field_address'
=>
''
,
37
'join_field_title'
=>
'NickName'
,
38
'join_field_uri'
=>
'ID'
,
39
'join_field_author'
=>
'ID'
,
40
'join_field_privacy'
=>
'allow_view_to'
,
41
'permalink'
=>
'profile.php?ID='
,
42
)));
43
44
}
45
46
return
$aResult
;
47
}
48
49
function
uninstall
($aParams)
50
{
51
$ret
= parent::uninstall(array());
52
53
return
$ret
;
54
}
55
}
ChWmapInstaller\install
install($aParams)
Definition:
installer.php:17
$ret
$ret
Definition:
index.php:39
ch_import
ch_import($sClassName, $aModule=array())
Definition:
utils.inc.php:1218
$aResult
$aResult
Definition:
index.php:19
php
ChWsbInstaller
Definition:
ChWsbInstaller.php:38
ChWmapInstaller\__construct
__construct($aConfig)
Definition:
installer.php:12
ChWmapInstaller
Definition:
installer.php:11
$aConfig
$aConfig
Definition:
config.php:8
ChWmapInstaller\uninstall
uninstall($aParams)
Definition:
installer.php:49
ChWsbService\call
static call($mixed, $sMethod, $aParams=array(), $sClass='Module')
Definition:
ChWsbService.php:32
Generated by
1.8.20