You are here

public function PurgePurgerBundleAPI::save in Purge 7.2

Saves the bundle to the variable.

File

includes/purge.class.inc, line 905
Contains all class and interface definitions for Purge.

Class

PurgePurgerBundleAPI
Provides a full bundle.

Code

public function save() {
  $data = array();

  // Serialize this bundle.
  $data = serialize($this);

  // Replace the object type in the serialized data with the default api
  // Strip off the first double quote (object name length)
  for ($i = 0; $i <= 1; $i++) {
    $data = ltrim($data, chr(34));
    $data = strstr($data, chr(34));
  }
  $data = 'O:20:"PurgePurgerBundleAPI' . $data;

  // Store the data in the variable
  variable_set('purge_config', $data);
}