Cheetah
modules
cheetah
chat
classes
ChChatDb.php
Go to the documentation of this file.
1
<?
php
2
8
require_once( CH_DIRECTORY_PATH_CLASSES .
'ChWsbModuleDb.php'
);
9
10
class
ChChatDb
extends
ChWsbModuleDb
11
{
12
var
$_oConfig
;
13
/*
14
* Constructor.
15
*/
16
function
__construct
(&$oConfig)
17
{
18
parent::__construct();
19
20
$this->_oConfig = $oConfig;
21
}
22
function
getMembershipActions
()
23
{
24
$sSql =
"SELECT `ID` AS `id`, `Name` AS `name` FROM `sys_acl_actions` WHERE `Name`='use chat'"
;
25
return
$this->
getAll
($sSql);
26
}
27
}
ChChatDb
Definition:
ChChatDb.php:11
ChChatDb\__construct
__construct(&$oConfig)
Definition:
ChChatDb.php:16
php
ChWsbModuleDb
Definition:
ChWsbModuleDb.php:12
ChWsbDb\getAll
getAll($sQuery, $aBindings=[], $iFetchType=PDO::FETCH_ASSOC)
Definition:
ChWsbDb.php:206
ChChatDb\getMembershipActions
getMembershipActions()
Definition:
ChChatDb.php:22
ChChatDb\$_oConfig
$_oConfig
Definition:
ChChatDb.php:12
Generated by
1.8.20