You are here

public function PrivateHeartbeat::dressUpMessages in Heartbeat 6.4

Same name and namespace in other branches
  1. 6.3 includes/privateheartbeat.inc \PrivateHeartbeat::dressUpMessages()

Parameters

$text:

Return value

HeartbeatParser object

Overrides HeartbeatAccess::dressUpMessages

File

includes/privateheartbeat.inc, line 29

Class

PrivateHeartbeat
Class PrivateHeartbeat Concrete class to prepare messages for the current user only

Code

public function dressUpMessages(HeartbeatParser $heartbeat) {
  $sql = " AND ((ua.uid = %d  AND hm.perms > %d ) OR (ua.uid_target = %d AND ua.access > %d) )";
  $heartbeat->raw_messages = $this
    ->resultSql($sql, array(
    $this->stream->uid,
    HEARTBEAT_PRIVATE,
    $this->stream->uid,
    HEARTBEAT_PUBLIC_TO_ADDRESSEE,
  ));
  return $heartbeat;
}