You are here

public function HeartbeatStream::setAjax in Heartbeat 7

setAjax().

1 call to HeartbeatStream::setAjax()
HeartbeatStream::__construct in includes/heartbeatstream.inc
Constructor

File

includes/heartbeatstream.inc, line 385
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 function setAjax($ajax = NULL) {
  if (isset($ajax)) {
    $this->ajax = $ajax;
  }
  elseif ($this->_page) {
    $this->ajax = $this->config->page_pager_ajax;
  }
  else {
    $this->ajax = $this->config->block_show_pager == 2 || $this->config->block_show_pager == 3;
  }
}