class ConnectedHeartbeat in Heartbeat 6.3
Same name and namespace in other branches
- 6.4 modules/friendlist_activity/connectedheartbeat.inc \ConnectedHeartbeat
Class ConnectedHeartbeat Concrete class to prepare messages for the current user and all of his/her relations.
Hierarchy
- class \HeartbeatAccess
- class \ConnectedHeartbeat
Expanded class hierarchy of ConnectedHeartbeat
1 string reference to 'ConnectedHeartbeat'
- heartbeat_heartbeat_register_access_types in ./
heartbeat.module - Implementation of hook_heartbeat_register_access_types()
File
- includes/
connectedheartbeat.inc, line 9
View source
class ConnectedHeartbeat extends HeartbeatAccess {
public function dressUpMessages(HeartbeatParser $heartbeat) {
$heartbeatInfo = $heartbeat
->get_info();
$heartbeatInfo->limit_view = variable_get('heartbeat_block_public_items_max', 25);
$heartbeat
->set_info($heartbeatInfo);
$sql = $heartbeatInfo->sql_start;
$sql .= " AND (\n (ua.uid in( " . implode(',', $heartbeatInfo->user_relations) . " ) AND ua.access >= 0 )\n OR (ua.uid_target = %d AND ua.nid_target <> 0 )\n )";
$sql .= $heartbeatInfo->sql_end;
$result = db_query_range($sql, $heartbeatInfo->language, $heartbeatInfo->uid, $heartbeatInfo->start_time, 0, $heartbeatInfo->limit_sql);
while ($heartbeat_row = db_fetch_object($result)) {
$heartbeat->raw_messages[$heartbeat_row->uaid] = $heartbeat_row;
}
return $heartbeat;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConnectedHeartbeat:: |
public | function |
Overrides HeartbeatAccess:: |
|
HeartbeatAccess:: |
protected | property | ||
HeartbeatAccess:: |
protected | property | ||
HeartbeatAccess:: |
protected | property | ||
HeartbeatAccess:: |
protected | property | ||
HeartbeatAccess:: |
protected | property | ||
HeartbeatAccess:: |
public | function | ||
HeartbeatAccess:: |
protected | function | ||
HeartbeatAccess:: |
final protected | function | ||
HeartbeatAccess:: |
public | function | ||
HeartbeatAccess:: |
public | function | ||
HeartbeatAccess:: |
protected | function | ||
HeartbeatAccess:: |
protected | function | ||
HeartbeatAccess:: |
constant | |||
HeartbeatAccess:: |
constant | |||
HeartbeatAccess:: |
public | function |