You are here

function pay_activity::set_data in Pay 6

Same name and namespace in other branches
  1. 7 includes/handlers/pay_activity.inc \pay_activity::set_data()

Set the $data value, which is stored as a serialized value in the database.

File

includes/handlers/pay_activity.inc, line 48
A base class for payment activities.

Class

pay_activity
@file A base class for payment activities.

Code

function set_data($value = NULL) {
  if (!empty($value) && is_scalar($value)) {
    $this->data = unserialize($value);
  }
  else {
    $this->data = $value;
  }
}