Restorer
in package
Restorer of snapshots of global state.
Table of Contents
Methods
- restoreFunctions() : void
- Deletes function definitions that are not defined in a snapshot.
- restoreGlobalVariables() : void
- Restores all global and super-global variables from a snapshot.
- restoreStaticAttributes() : void
- Restores all static attributes in user-defined classes from this snapshot.
- restoreSuperGlobalArray() : void
- Restores a super-global variable array from this snapshot.
Methods
restoreFunctions()
Deletes function definitions that are not defined in a snapshot.
public
restoreFunctions(Snapshot $snapshot) : void
Parameters
- $snapshot : Snapshot
Tags
restoreGlobalVariables()
Restores all global and super-global variables from a snapshot.
public
restoreGlobalVariables(Snapshot $snapshot) : void
Parameters
- $snapshot : Snapshot
restoreStaticAttributes()
Restores all static attributes in user-defined classes from this snapshot.
public
restoreStaticAttributes(Snapshot $snapshot) : void
Parameters
- $snapshot : Snapshot
restoreSuperGlobalArray()
Restores a super-global variable array from this snapshot.
private
restoreSuperGlobalArray(Snapshot $snapshot, string $superGlobalArray) : void
Parameters
- $snapshot : Snapshot
- $superGlobalArray : string