Logo Search packages:      
Sourcecode: aegir-provision version File versions  Download package

_scrub_object ( input  ) 

This is a helper function which changes deeply nested objects into arrays

This helps get past the face that objects are not simple to work with, or save in context files.

This function 'misuses' a side effect of the json_decode function's second parameter. As this is done in C, and the structures we are manipulating aren't that large, it should be performant enough.

Definition at line 298 of file provision.inc.

Referenced by drush_provision_drupal_post_provision_install().

                               {
  return json_decode(json_encode($input), TRUE);
}


Generated by  Doxygen 1.6.0   Back to index