You are here

function _eloqua_unserialize_data_column in Eloqua 7

Same name and namespace in other branches
  1. 7.2 eloqua_webform/eloqua_webform.inc \_eloqua_unserialize_data_column()

Goes through the result set and unserialises any 'data' columns.

Parameters

array $result_set: The result set.

Return value

array The result set with unserialized data.

3 calls to _eloqua_unserialize_data_column()
eloqua_post_load in eloqua_webform/eloqua_webform.inc
Loads a post form the database.
eloqua_webform_load in eloqua_webform/eloqua_webform.inc
Loads webform settings from the database.
_eloqua_cron in eloqua_webform/eloqua_webform.cron.inc
Cron helper function.

File

eloqua_webform/eloqua_webform.inc, line 382
Eloqua Helper functions and constants

Code

function _eloqua_unserialize_data_column($result_set) {
  $result = array();
  if (!is_array($result_set)) {
    $result_set = array();
  }
  foreach ($result_set as $row) {
    $row->data = unserialize($row->data);
    $result[] = $row;
  }
  return $result;
}