Cheetah
|
Public Member Functions | |
__construct (&$aModule) | |
actionAdministration () | |
actionSetAsRead () | |
actionCheckUpdates ($sMode='global', $iLastActivityId=0, $sType='', $iProfileId=0) | |
actionGetMemberBlock ($sActivityType='') | |
getActivityPage ($iProfile=0, $sType='') | |
getInitPart ($sType='', $iProfileId=0, $bActive=true) | |
getActivityTypesToggles ($sPageUrl='') | |
serviceResponseContent ($oAlert) | |
serviceResponseProfiles ($oAlert) | |
serviceUpdateHandlers ($sModuleUri='all', $bInstall=true) | |
serviceGetSpyBlock ($sPage='index.php', $iProfileId=0) | |
serviceGetSpyBlockFriends ($iProfileId=0) | |
serviceGetMemberMenuSpyData () | |
serviceGetMemberMenuBubblesData ($iOldCount) | |
_parseParameters ($sKey, &$aParameters) | |
_getSpyBlock ($aVars) | |
_proccesActivites ($aActivites, $sExtraStyles='', $inArray=false, $bSetViewed=false, $sExtraCssClass=null) | |
![]() | |
__construct ($aModule) | |
isLogged () | |
getUserId () | |
getUserPassword () | |
getTitleKey ($sUri) | |
serviceGetBaseUrl () | |
Public Attributes | |
$aModuleInfo | |
$sPathToModule | |
$oSearch | |
$sSpyMode | |
$iMemberId | |
$sEventsWrapper = 'spy_events' | |
$iPage = 1 | |
$iPerPage | |
![]() | |
$_aModule | |
$_oDb | |
$_oTemplate | |
$_oConfig | |
Additional Inherited Members | |
![]() | |
static | getInstance ($sClassName) |
static | getTitle ($sUri) |
Spy module by Cheetah
This module will show all system events recived by some of modules. 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: no levels;
Service methods:
Process all alerts.
This module will check for spy module alerts across all other Cheetah modules.
Function will get spy block;
Function will generate content for member menu (latest activity);
Function will generate content for member menu's bubbles;
Alerts: no alerts;
Definition at line 66 of file ChSpyModule.php.
ChSpyModule::__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 100 of file ChSpyModule.php.
ChSpyModule::_getSpyBlock | ( | $aVars | ) |
Generate spy block
$aVars | array $aVars[type] - string $aVars[page_url] - string $aVars[page] - integer $aVars[profile] - integer |
Definition at line 578 of file ChSpyModule.php.
ChSpyModule::_parseParameters | ( | $sKey, | |
& | $aParameters | ||
) |
Function will replace all markers into recived string;
: | $sKey | (string) - language key; |
: | $aParameters | (array) - key's parameters; |
Definition at line 557 of file ChSpyModule.php.
ChSpyModule::_proccesActivites | ( | $aActivites, | |
$sExtraStyles = '' , |
|||
$inArray = false , |
|||
$bSetViewed = false , |
|||
$sExtraCssClass = null |
|||
) |
Function will procces recived activites;
: | $aActivites | (array); |
: | $sExtraStyles | (string) - extra css styles; |
: | $bSetViewed | (boolean) - if isset this parameter activity will; set as viwed; |
Definition at line 662 of file ChSpyModule.php.
ChSpyModule::actionAdministration | ( | ) |
Function will generate the poll's admin page ;
Definition at line 129 of file ChSpyModule.php.
ChSpyModule::actionCheckUpdates | ( | $sMode = 'global' , |
|
$iLastActivityId = 0 , |
|||
$sType = '' , |
|||
$iProfileId = 0 |
|||
) |
Function will get new activity by type;
: | $sMode | (string) - page's mode (possible values : global, friends_events); |
: | $iLastActivityId | (integer) - last event's Id; |
: | $sType | (string) - activity type; |
Definition at line 196 of file ChSpyModule.php.
ChSpyModule::actionGetMemberBlock | ( | $sActivityType = '' | ) |
Function will get profile's spy block by ajax method;
: | $iPage | (integer) - current page; |
: | $sActivityType | (string) - type of activity; |
Definition at line 262 of file ChSpyModule.php.
ChSpyModule::actionSetAsRead | ( | ) |
Function will set all profile's activity as read;
Definition at line 183 of file ChSpyModule.php.
ChSpyModule::getActivityPage | ( | $iProfile = 0 , |
|
$sType = '' |
|||
) |
Function will generate global spy's page (content activity only!);
: | $sType | (string) - type of activity; |
Definition at line 273 of file ChSpyModule.php.
ChSpyModule::getActivityTypesToggles | ( | $sPageUrl = '' | ) |
Function will generate activity types toggle elements;
: | $sPageUrl | (string) - nedded page's url; |
Definition at line 357 of file ChSpyModule.php.
ChSpyModule::getInitPart | ( | $sType = '' , |
|
$iProfileId = 0 , |
|||
$bActive = true |
|||
) |
Function will get the javascript code that will update spy page every times;
: | $iProfileId | (integer) - profile's Id; |
: | $sType | (string) - type of activity; |
Definition at line 307 of file ChSpyModule.php.
ChSpyModule::serviceGetMemberMenuBubblesData | ( | $iOldCount | ) |
Function will get bubbles data for member menu;
: | $iOldCount | (integer) - received old count of messages (if will difference will generate message) |
Definition at line 499 of file ChSpyModule.php.
ChSpyModule::serviceGetMemberMenuSpyData | ( | ) |
Function will generate content for member menu;
Definition at line 458 of file ChSpyModule.php.
ChSpyModule::serviceGetSpyBlock | ( | $sPage = 'index.php' , |
|
$iProfileId = 0 |
|||
) |
Generate spy block
$sPage | string |
$iProfileId | integer |
Definition at line 433 of file ChSpyModule.php.
ChSpyModule::serviceGetSpyBlockFriends | ( | $iProfileId = 0 | ) |
Definition at line 442 of file ChSpyModule.php.
ChSpyModule::serviceResponseContent | ( | $oAlert | ) |
SERVICE METHODS Process alert.
ChWsbAlerts | $oAlert | an instance with accured alert. |
Definition at line 396 of file ChSpyModule.php.
ChSpyModule::serviceResponseProfiles | ( | $oAlert | ) |
Definition at line 402 of file ChSpyModule.php.
ChSpyModule::serviceUpdateHandlers | ( | $sModuleUri = 'all' , |
|
$bInstall = true |
|||
) |
Definition at line 408 of file ChSpyModule.php.
ChSpyModule::$aModuleInfo |
Definition at line 69 of file ChSpyModule.php.
ChSpyModule::$iMemberId |
Definition at line 80 of file ChSpyModule.php.
ChSpyModule::$iPage = 1 |
Definition at line 84 of file ChSpyModule.php.
ChSpyModule::$iPerPage |
Definition at line 85 of file ChSpyModule.php.
ChSpyModule::$oSearch |
Definition at line 75 of file ChSpyModule.php.
ChSpyModule::$sEventsWrapper = 'spy_events' |
Definition at line 82 of file ChSpyModule.php.
ChSpyModule::$sPathToModule |
Definition at line 72 of file ChSpyModule.php.
ChSpyModule::$sSpyMode |
Definition at line 77 of file ChSpyModule.php.