CRM_Core_State
class CRM_Core_State
The basic state element. Each state element is linked to a form and represents the form in the transition diagram. We use the state to determine what action to take on various user input. Actions include things like going back / stepping forward / process etc
Constants
START |
The different types of states. As we flush out the framework more we will introduce other conditional / looping states which will bring in more complexity to the framework. For now, lets keep it simple |
FINISH |
The different types of states. As we flush out the framework more we will introduce other conditional / looping states which will bring in more complexity to the framework. For now, lets keep it simple |
SIMPLE |
The different types of states. As we flush out the framework more we will introduce other conditional / looping states which will bring in more complexity to the framework. For now, lets keep it simple |
Properties
protected string | $_name | State name. | |
protected int | $_type | This is a combination "OR" of the STATE_* constants defined below | |
protected CRM_Core_State | $_back | The state that precedes this state. | |
protected CRM_Core_State | $_next | The state that succeeds this state. | |
protected CRM_Core_StateMachine | $_stateMachine | The state machine that this state is part of. |
Methods
Constructor.
No description
Determine the name of the next state.
Mark this page as valid for the QFC framework.
Mark this page as invalid for the QFC framework.
Getter for name.
Setter for name.
Getter for type.
Details
at line 93
CRM_Core_State
__construct(string $name, int $type, CRM_Core_State $back, CRM_Core_State $next, CRM_Core_StateMachine $stateMachine)
Constructor.
at line 102
debugPrint()
at line 114
mixed
handleBackState(CRM_Core_Page $page)
Given an CRM Form, jump to the previous page.
at line 132
mixed
handleNextState(CRM_Core_Page $page)
Given an CRM Form, jump to the next page.
at line 149
string
getNextState()
Determine the name of the next state.
This is useful when we want to display the navigation labels or potential path.
at line 164
validate(array $data)
Mark this page as valid for the QFC framework.
at line 173
invalidate(array $data)
Mark this page as invalid for the QFC framework.
at line 182
string
getName()
Getter for name.
at line 191
setName(string $name)
Setter for name.
at line 200
int
getType()
Getter for type.