Cheetah
|
Public Member Functions | |
__construct (&$aModule) | |
actionWriteMessage ($sObject, $iHandler) | |
actionBlockMessage ($sObject, $iHandler, $iMessageId=0) | |
actionDeleteMessage ($sObject, $iHandler, $iMessageId=0) | |
actionGetMessages ($sObject, $iHandler, $iLastMessageId=0) | |
actionAdministration () | |
serviceGetShoutBox ($sObject='ch_shoutbox', $iHandler=0) | |
serviceResponseProfileDelete ($oAlert) | |
serviceUpdateObjects ($sModuleUri='all', $bInstall=true) | |
_getLastMessages ($sObject, $iHandler, $iLastId=0) | |
_defineActions () | |
isShoutBoxAllowed ($sObject, $iHandler, $iMemberId, $isPerformAction=false) | |
isShoutBoxDeleteAllowed ($sObject, $iHandler, $iMemberId, $isPerformAction=false) | |
isShoutBoxBlockIpAllowed ($sObject, $iHandler, $iMemberId, $isPerformAction=false) | |
_checkObjectAndHandler ($sObject, &$iHandler) | |
_runCheckAllowedCustom ($sObject, $iHandler, $iMemberId, $isPerformAction, $sCode) | |
![]() | |
__construct ($aModule) | |
isLogged () | |
getUserId () | |
getUserPassword () | |
getTitleKey ($sUri) | |
serviceGetBaseUrl () | |
Public Attributes | |
$sModuleName | |
$aModuleInfo | |
$sPathToModule | |
$iMemberId | |
$aUsedTemplates = array() | |
$_aObjects = array() | |
![]() | |
$_aModule | |
$_oDb | |
$_oTemplate | |
$_oConfig | |
Additional Inherited Members | |
![]() | |
static | getInstance ($sClassName) |
static | getTitle ($sUri) |
Shoutbox module by Cheetah
This module allow user to send messages that will show on site's home page. This is default module and Cheetah can not work properly without this module.
Profile's Wall: no wall events
Spy: no spy events
Memberships/ACL: use shoutbox - CH_USE_SHOUTBOX
Service methods:
Generate shoutbox window.
Alerts:
no alerts here;
Definition at line 46 of file ChShoutBoxModule.php.
ChShoutBoxModule::__construct | ( | & | $aModule | ) |
Class constructor ;
: | $aModule | (array) - contain some information about this module; [ id ] - (integer) module's id ; [ title ] - (string) module's title ; [ vendor ] - (string) module's vendor ; [ path ] - (string) path to this module ; [ uri ] - (string) this module's URI ; [ class_prefix ] - (string) this module's php classes file prefix ; [ db_prefix ] - (string) this module's Db tables prefix ; [ date ] - (string) this module's date installation ; |
Definition at line 78 of file ChShoutBoxModule.php.
ChShoutBoxModule::_checkObjectAndHandler | ( | $sObject, | |
& | $iHandler | ||
) |
Definition at line 435 of file ChShoutBoxModule.php.
ChShoutBoxModule::_defineActions | ( | ) |
ChShoutBoxModule::_getLastMessages | ( | $sObject, | |
$iHandler, | |||
$iLastId = 0 |
|||
) |
Get list of last messages;
: | $sObject | - object name |
: | $iHandler | - handler id |
: | $iLastId | (integer) - last message's Id; |
Definition at line 334 of file ChShoutBoxModule.php.
ChShoutBoxModule::_runCheckAllowedCustom | ( | $sObject, | |
$iHandler, | |||
$iMemberId, | |||
$isPerformAction, | |||
$sCode | |||
) |
Definition at line 442 of file ChShoutBoxModule.php.
ChShoutBoxModule::actionAdministration | ( | ) |
Generate shoutbox's admin page ;
Definition at line 226 of file ChShoutBoxModule.php.
ChShoutBoxModule::actionBlockMessage | ( | $sObject, | |
$iHandler, | |||
$iMessageId = 0 |
|||
) |
Block message
$sObject | object name |
$iHandler | handler id |
$iMessageId | integer |
Definition at line 139 of file ChShoutBoxModule.php.
ChShoutBoxModule::actionDeleteMessage | ( | $sObject, | |
$iHandler, | |||
$iMessageId = 0 |
|||
) |
Delete message
$sObject | object name |
$iHandler | handler id |
$iMessageId | integer |
Definition at line 174 of file ChShoutBoxModule.php.
ChShoutBoxModule::actionGetMessages | ( | $sObject, | |
$iHandler, | |||
$iLastMessageId = 0 |
|||
) |
Get all latest messages;
: | $sObject | - object name |
: | $iHandler | - handler id |
: | $iLastMessageId | (integer) - last message's Id; |
Definition at line 203 of file ChShoutBoxModule.php.
ChShoutBoxModule::actionWriteMessage | ( | $sObject, | |
$iHandler | |||
) |
Write new message;
$sObject | object name |
$iHandler | handler id |
Definition at line 97 of file ChShoutBoxModule.php.
ChShoutBoxModule::isShoutBoxAllowed | ( | $sObject, | |
$iHandler, | |||
$iMemberId, | |||
$isPerformAction = false |
|||
) |
Check membership level for current type if users (use shotbox);
: | $iMemberId | (integer) - member's Id; |
: | $isPerformAction | (boolean) - if isset this parameter that function will amplify the old action's value; |
Definition at line 360 of file ChShoutBoxModule.php.
ChShoutBoxModule::isShoutBoxBlockIpAllowed | ( | $sObject, | |
$iHandler, | |||
$iMemberId, | |||
$isPerformAction = false |
|||
) |
Check membership level for current type if users (block by ip);
: | $iMemberId | (integer) - member's Id; |
: | $isPerformAction | (boolean) - if isset this parameter that function will amplify the old action's value; |
Definition at line 414 of file ChShoutBoxModule.php.
ChShoutBoxModule::isShoutBoxDeleteAllowed | ( | $sObject, | |
$iHandler, | |||
$iMemberId, | |||
$isPerformAction = false |
|||
) |
Check membership level for current type if users (delete any of messages in shotbox);
: | $iMemberId | (integer) - member's Id; |
: | $isPerformAction | (boolean) - if isset this parameter that function will amplify the old action's value; |
Definition at line 387 of file ChShoutBoxModule.php.
ChShoutBoxModule::serviceGetShoutBox | ( | $sObject = 'ch_shoutbox' , |
|
$iHandler = 0 |
|||
) |
Generate the shoutbox window
$sObject | object name |
$iHandler | handler id |
Definition at line 273 of file ChShoutBoxModule.php.
ChShoutBoxModule::serviceResponseProfileDelete | ( | $oAlert | ) |
Delete messages of removed profile
$oAlert | object |
Definition at line 289 of file ChShoutBoxModule.php.
ChShoutBoxModule::serviceUpdateObjects | ( | $sModuleUri = 'all' , |
|
$bInstall = true |
|||
) |
Update shoutbox objects for a module(s)
Definition at line 303 of file ChShoutBoxModule.php.
ChShoutBoxModule::$_aObjects = array() |
Definition at line 63 of file ChShoutBoxModule.php.
ChShoutBoxModule::$aModuleInfo |
Definition at line 51 of file ChShoutBoxModule.php.
ChShoutBoxModule::$aUsedTemplates = array() |
Definition at line 60 of file ChShoutBoxModule.php.
ChShoutBoxModule::$iMemberId |
Definition at line 57 of file ChShoutBoxModule.php.
ChShoutBoxModule::$sModuleName |
Definition at line 48 of file ChShoutBoxModule.php.
ChShoutBoxModule::$sPathToModule |
Definition at line 54 of file ChShoutBoxModule.php.