protected function HeartbeatAccess::whoIsActor in Heartbeat 6.4
proctected fuinction whoIsActor Calculate the user of whom we want to see activity for. Set the actor of the stream.
2 calls to HeartbeatAccess::whoIsActor()
- ConnectedHeartbeat::whoIsActor in modules/
friendlist_activity/ connectedheartbeat.inc - proctected fuinction whoIsActor Add the heartbeat relations for the stream's active user.
- HeartbeatAccess::__construct in includes/
heartbeataccess.inc - Constructor
1 method overrides HeartbeatAccess::whoIsActor()
- ConnectedHeartbeat::whoIsActor in modules/
friendlist_activity/ connectedheartbeat.inc - proctected fuinction whoIsActor Add the heartbeat relations for the stream's active user.
File
- includes/
heartbeataccess.inc, line 86 - HeartbeatAccess object is the object that takes stream configuration to create a stream of activity objects. It is the controlling organ at the pre-query, query and post-query phases.
Class
- HeartbeatAccess
- Abstract class heartbeataccess This base class has final template methods which are used by the derived concretes. The HeartbeatAccess is a state object that is given to the HeartbeatMessageBuilder to set the access to the current request.
Code
protected function whoIsActor($account = NULL) {
// Use the account if available.
if (isset($account)) {
$this->_whoisuser_type = self::TYPE_USER_PROFILE;
$this->_actor = $account;
$this->stream->uid = $this->_uid = $account->uid;
}
else {
global $user;
$this->_whoisuser_type = self::TYPE_ACTOR;
$this->_actor = $user;
$this->stream->uid = $this->_uid = $user->uid;
}
}