You are here

private function HeartbeatActivity::set_variables in Heartbeat 6.4

Same name and namespace in other branches
  1. 7 includes/heartbeatactivity.inc \HeartbeatActivity::set_variables()

Sets the variables array Data variables are stored in an array to use them to build real variables. this means that when activity message objects get merged, the variables will be filled with variables components from all instances.

1 call to HeartbeatActivity::set_variables()
HeartbeatActivity::__construct in includes/heartbeatactivity.inc
constructor

File

includes/heartbeatactivity.inc, line 341
HeartbeatActivity object Defines one heartbeat activity object.

Class

HeartbeatActivity
Class defines an activity message object

Code

private function set_variables($variables = NULL) {
  if (!empty($variables)) {
    if (is_string($variables)) {
      $this->variables = heartbeat_decode_message_variables($variables);
    }
    elseif (is_array($variables)) {
      $this->variables = $variables;
    }
  }
}