Moodle  2.2.1
http://www.collinsharper.com
SimpleStateStack Class Reference

Public Member Functions

 SimpleStateStack ($start)
 getCurrent ()
 enter ($state)
 leave ()

Data Fields

 $_stack

Detailed Description

Definition at line 124 of file parser.php.


Member Function Documentation

enter ( state)

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

Parameters:
string$stateNew state. public

Definition at line 151 of file parser.php.

Accessor for current state.

Returns:
string State. public

Definition at line 141 of file parser.php.

leave ( )

Leaves the current state and reverts to the previous one.

Returns:
boolean False if we drop off the bottom of the list. public

Definition at line 162 of file parser.php.

SimpleStateStack ( start)

Constructor. Starts in named state.

Parameters:
string$startStarting state name. public

Definition at line 132 of file parser.php.


Field Documentation

$_stack

Definition at line 125 of file parser.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations