publicheartbeat.inc in Heartbeat 6.3
File
includes/publicheartbeat.inc
View source
<?php
class PublicHeartbeat extends HeartbeatAccess {
public function dressUpMessages(HeartbeatParser $heartbeat) {
$heartbeatInfo = $heartbeat
->get_info();
$heartbeatInfo->uid = 0;
$heartbeatInfo->limit_view = variable_get('heartbeat_block_public_items_max', 25);
$heartbeatInfo->user_relations = $heartbeatInfo->uid;
$heartbeat
->set_info($heartbeatInfo);
$sql = $heartbeatInfo->sql_start;
$sql .= " AND ua.uid > 0 AND ua.access > 0 ";
$sql .= $heartbeatInfo->sql_end;
$result = db_query_range($sql, $heartbeatInfo->language, $heartbeatInfo->start_time, 0, $heartbeatInfo->limit_sql);
while ($heartbeat_row = db_fetch_object($result)) {
$heartbeat->raw_messages[$heartbeat_row->uaid] = $heartbeat_row;
}
return $heartbeat;
}
}
Classes
Name |
Description |
PublicHeartbeat |
Class PublicHeartbeat
Concrete class to prepare messages for all
users in the site of whom the heartbeat is
set to public |