public function HeartbeatAccess::__construct in Heartbeat 6.4
Same name and namespace in other branches
- 6.3 includes/heartbeataccess.inc \HeartbeatAccess::__construct()
Constructor
Parameters
$stream HeartbeatStream object with the neccesairy parameters:
$page Boolean to indicate if this is a page view:
File
- includes/
heartbeataccess.inc, line 42 - 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
public function __construct(HeartbeatStream $stream, $page = FALSE, $account = NULL) {
$this->_page = $page;
$this->stream = $stream;
$this->stream
->setItemsMax($this->_page);
$this
->whoIsActor($account);
$this
->construct();
}