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

Public Member Functions

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

Data Fields

 $_stack

Detailed Description

Definition at line 132 of file lexer.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 159 of file lexer.php.

Accessor for current state.

Returns:
string State as string. public

Definition at line 149 of file lexer.php.

leave ( )

Leaves the current state and reverts to the previous one.

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

Definition at line 170 of file lexer.php.

StateStack ( start)

Constructor. Starts in named state.

Parameters:
string$startStarting state name. public

Definition at line 140 of file lexer.php.


Field Documentation

$_stack

Definition at line 133 of file lexer.php.


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