Cheetah
inc
classes
ChWsbUpdateMembersCache.php
Go to the documentation of this file.
1
<?
php
2
8
class
ChWsbUpdateMembersCache
extends
ChWsbAlertsResponse
9
{
10
// system event
11
function
response
(
$o
)
12
{
13
14
$sProfileStatus =
null
;
15
$iProfileId
=
$o
->iObject;
16
17
if
(
$iProfileId
)
18
$sProfileStatus =
db_value
19
(
20
"
21
SELECT
22
`Status`
23
FROM
24
`Profiles`
25
WHERE
26
`ID` = {$iProfileId}
27
"
28
);
29
30
if
( $sProfileStatus ==
'Active'
) {
31
32
if
(
'profile'
==
$o
->sUnit)
33
switch
(
$o
->sAction) {
34
35
case
'join'
:
36
case
'edit'
:
37
case
'delete'
:
38
// clean cache
39
$GLOBALS
[
'MySQL'
]->cleanCache(
'sys_browse_people'
);
40
break
;
41
42
}
43
44
}
45
}
46
47
}
ChWsbAlertsResponse
Definition:
ChWsbAlerts.php:127
php
db_value
db_value($query, $bindings=[], $error_checking=true, $index=0)
Definition:
db.inc.php:98
ChWsbUpdateMembersCache\response
response($o)
Definition:
ChWsbUpdateMembersCache.php:11
$o
$o
Definition:
cmd.php:193
$iProfileId
if( $sMembersList) $iProfileId
Definition:
communicator.php:29
ChWsbUpdateMembersCache
Definition:
ChWsbUpdateMembersCache.php:9
$GLOBALS
$GLOBALS['iAdminPage']
Definition:
advanced_settings.php:10
Generated by
1.8.20