final public function HeartbeatStream::__construct in Heartbeat 7
Same name and namespace in other branches
- 6.4 includes/heartbeatstream.inc \HeartbeatStream::__construct()
Constructor
Parameters
$stram HeartbeatStreamConfig object with the neccesairy parameters:
$page Boolean to indicate if this is a page view:
File
- includes/
heartbeatstream.inc, line 111 - HeartbeatStream 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
- HeartbeatStream
- Abstract class HeartbeatStream This base class has final template methods which are used by the derived concretes. The HeartbeatStream is a state object that is given to the HeartbeatStreamBuilder to set the access to the current request.
Code
public final function __construct(HeartbeatStreamConfig $streamConfig, $page = FALSE, $account = NULL) {
$this->_page = $page;
$this
->setConfig($streamConfig);
$this
->setAjax();
if (empty($this->_offset_time)) {
$this
->setOffsetTime();
}
$this
->setViewer($GLOBALS['user']);
$this
->setViewed($account);
$this
->setAvailableTemplates();
$this
->construct();
$this
->setContextualArguments();
}