Class SimpleStateStack

Description

States for a stack machine.

Located in /libraries/pear/simpletest/parser.php (line 122)


	
			
Variable Summary
 mixed $_stack
Method Summary
 SimpleStateStack SimpleStateStack (string $start)
 void enter (string $state)
 string getCurrent ()
 boolean leave ()
Variables
mixed $_stack (line 123)
Methods
Constructor SimpleStateStack (line 130)

Constructor. Starts in named state.

  • access: public
SimpleStateStack SimpleStateStack (string $start)
  • string $start: Starting state name.
enter (line 149)

Adds a state to the stack and sets it to be the current state.

  • access: public
void enter (string $state)
  • string $state: New state.
getCurrent (line 139)

Accessor for current state.

  • return: State.
  • access: public
string getCurrent ()
leave (line 160)

Leaves the current state and reverts to the previous one.

  • return: False if we drop off the bottom of the list.
  • access: public
boolean leave ()

Documentation generated on Fri, 3 Dec 2004 12:27:15 +0000 by phpDocumentor 1.3.0RC3