Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
StateStack Class Reference

States for a stack machine. More...

Public Member Functions

 __construct ($start)
 Constructor.
 
 enter ($state)
 Adds a state to the stack and sets it to be the current state.
 
 getCurrent ()
 Accessor for current state.
 
 leave ()
 Leaves the current state and reverts to the previous one.
 
 StateStack ($start)
 Old syntax of class constructor.
 

Public Attributes

 $_stack
 

Detailed Description

States for a stack machine.

License
Public Domain

The documentation for this class was generated from the following file: