Restorer
in package
Restorer of snapshots of global state.
Table of Contents
- 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
Return values
void —restoreGlobalVariables()
Restores all global and super-global variables from a snapshot.
public
restoreGlobalVariables(Snapshot $snapshot) : void
Parameters
- $snapshot : Snapshot
Return values
void —restoreStaticAttributes()
Restores all static attributes in user-defined classes from this snapshot.
public
restoreStaticAttributes(Snapshot $snapshot) : void
Parameters
- $snapshot : Snapshot
Return values
void —restoreSuperGlobalArray()
Restores a super-global variable array from this snapshot.
private
restoreSuperGlobalArray(Snapshot $snapshot, string $superGlobalArray) : void
Parameters
- $snapshot : Snapshot
- $superGlobalArray : string