CRM_Utils_AutoClean
class CRM_Utils_AutoClean
Class CRM_Utils_AutoClean
Automatically cleanup state when the object handle is released. This is useful for unordered cleanup when a function has many different exit scenarios (eg multiple returns, exceptions).
Properties
protected | $callback | ||
protected | $args |
Methods
Call a cleanup function when the current context shuts down.
Temporarily swap values using callback functions, and cleanup when the current context shuts down.
No description
Prohibit (de)serialization of CRM_Utils_AutoClean.
Prohibit (de)serialization of CRM_Utils_AutoClean.
Details
at line 60
static CRM_Utils_AutoClean
with(mixed $callback)
Call a cleanup function when the current context shuts down.
at line 87
static CRM_Utils_AutoClean
swap(mixed $getter, mixed $setter, mixed $tmpValue)
Temporarily swap values using callback functions, and cleanup when the current context shuts down.
at line 101
__destruct()
at line 111
__sleep()
Prohibit (de)serialization of CRM_Utils_AutoClean.
The generic nature of AutoClean makes it a potential target for escalating serialization vulnerabilities, and there's no good reason for serializing it.
at line 121
__wakeup()
Prohibit (de)serialization of CRM_Utils_AutoClean.
The generic nature of AutoClean makes it a potential target for escalating serialization vulnerabilities, and there's no good reason for deserializing it.