You are here

public function HeartbeatActivity::set_variables in Heartbeat 7

Same name and namespace in other branches
  1. 6.4 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 405
HeartbeatActivity object Defines one heartbeat activity object.

Class

HeartbeatActivity
Class defines an activity message object

Code

public 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;
    }
  }
}