PHP midgard_collector method destroy
Destroys midgard_collector object.
void destroy(void);
midgard_collector method destroy takes no parameter.
This method is unstable in 1.8 series. It will be replaced or even removed in next Midgard releases.
Destroys midgard_collector and all its keys' and subkeys' collection. On PHP level it's automatically done when PHP engine ends request or command line application is closed. Purpose of this method is to free memory allocated for midgard_collector for applications or modules which require low memory usage.
Example
<?php
$mc = new midgard_collector("midgard_element", "style", $id);
$mc->set_key_property("name");
$mc->add_value_property("value");
$mc->execute();
$mc->destroy();
?>
