PHP Mage unregister is a function used in the Magento platform that removes elements from the global registry. The global registry stores information that is shared between different parts of the application.
Code example:
Mage::unregister('my_variable');
In this example, the 'my_variable' element is removed from the global registry.
Another example:
$my_object = new My_Object(); Mage::register('my_object', $my_object); // Some code here Mage::unregister('my_object');
In this example, an object is created and registered in the global registry. The object can then be used in different parts of the application. Later on, the object is unregistered from the global registry.
The Mage namespace is part of the Magento package library.
PHP Mage::unregister - 30 examples found. These are the top rated real world PHP examples of Mage::unregister extracted from open source projects. You can rate examples to help us improve the quality of examples.