You are here

class HeartbeatStreamConfig in Heartbeat 7

Class HeartbeatStreamConfig

Changeable object with configurations for an activity stream

Hierarchy

Expanded class hierarchy of HeartbeatStreamConfig

1 string reference to 'HeartbeatStreamConfig'
_heartbeat_update_7010 in ./heartbeat.install
Helper function to add the new schema for streams.

File

includes/heartbeatstreamconfig.inc, line 15
HeartbeatStream Configuration object Parameter object that is given to a HeartbeatStreamConfig object to form a full stream of handled activity objects.

View source
class HeartbeatStreamConfig extends HeartbeatCtoolsObject {

  // Class name actualy used.
  public $name = '';

  // Class to ease the read/write.
  public $class = '';

  // Real class to load for cloned streams.
  public $real_class = '';

  // The path to the class.
  public $path = '';

  // Human readable name.
  public $title = '';

  // The module the query builder is located.
  public $module = '';

  // Extra variables.
  public $variables = array();

  // Indicates whether this stream has a block display or not.
  public $has_block = TRUE;

  // Maximum number of items in the block display.
  public $block_items_max = 25;

  // Number to indicate how a block-pager should be shown.
  public $block_show_pager = 0;

  // View mode for the block.
  public $block_view_mode = 'default';

  // Maximum number of items in the page display.
  public $page_items_max = 50;

  // Boolean to indicate of a page-pager should be shown.
  public $page_show_pager = 0;

  // Boolean to indicate if the pager is ajax-driven.
  public $page_pager_ajax = 0;

  // View mode for the page.
  public $page_view_mode = 'default';

  // Setting for the number of grouped items maximum.
  public $show_message_times = 1;

  // Setting for the number of grouped items maximum in a grouped message.
  public $show_message_times_grouped = 0;

  // Denied message templates.
  public $messages_denied = array();

  // Limit the number of messages by maximum messages to load.
  public $num_load_max = 100;

  // Limit the timespan to group messages.
  public $grouping_seconds = 7200;

  // Boolean for to skip the viewing user, defaults to false.
  public $skip_active_user = FALSE;

  // Timestamp used to poll for newer messages.
  public $poll_messages = 0;

  // How to notify there are newer messages.
  public $poll_messages_type = 0;

  // Stream path is the path to the stream page (optional).
  public $stream_path = '';

  // Stream user path is the path to a stream on the profile page (optional).
  public $stream_profile_path = '';

  // Settings variable
  public $settings = array();

  /**
   * Constructor to load the type variable
   */
  public function __construct() {
    $this->grouping_seconds = variable_get('heartbeat_activity_grouping_seconds', 7200);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
HeartbeatCtoolsObject::$api_version public property
HeartbeatCtoolsObject::$disabled public property
HeartbeatCtoolsObject::$export_module public property
HeartbeatCtoolsObject::$export_type public property
HeartbeatCtoolsObject::$in_code_only public property
HeartbeatCtoolsObject::$table public property
HeartbeatCtoolsObject::$type public property
HeartbeatStreamConfig::$block_items_max public property
HeartbeatStreamConfig::$block_show_pager public property
HeartbeatStreamConfig::$block_view_mode public property
HeartbeatStreamConfig::$class public property
HeartbeatStreamConfig::$grouping_seconds public property
HeartbeatStreamConfig::$has_block public property
HeartbeatStreamConfig::$messages_denied public property
HeartbeatStreamConfig::$module public property
HeartbeatStreamConfig::$name public property
HeartbeatStreamConfig::$num_load_max public property
HeartbeatStreamConfig::$page_items_max public property
HeartbeatStreamConfig::$page_pager_ajax public property
HeartbeatStreamConfig::$page_show_pager public property
HeartbeatStreamConfig::$page_view_mode public property
HeartbeatStreamConfig::$path public property
HeartbeatStreamConfig::$poll_messages public property
HeartbeatStreamConfig::$poll_messages_type public property
HeartbeatStreamConfig::$real_class public property
HeartbeatStreamConfig::$settings public property
HeartbeatStreamConfig::$show_message_times public property
HeartbeatStreamConfig::$show_message_times_grouped public property
HeartbeatStreamConfig::$skip_active_user public property
HeartbeatStreamConfig::$stream_path public property
HeartbeatStreamConfig::$stream_profile_path public property
HeartbeatStreamConfig::$title public property
HeartbeatStreamConfig::$variables public property
HeartbeatStreamConfig::__construct public function Constructor to load the type variable