* @param CRM_Core_StateMachine $stateMachine statemachine that this states belongs to
*
* @return CRM_Core_State
- * @access public
*/
public function __construct($name, $type, $back, $next, &$stateMachine) {
$this->_name = $name;
* @param object the CRM_Core_Form element under consideration
*
* @return mixed does a jump to the back state
- * @access public
*/
public function handleBackState(&$page) {
if ($this->_type & self::START) {
* @param object the CRM_Core_Form element under consideration
*
* @return mixed does a jump to the nextstate
- * @access public
*/
public function handleNextState(&$page) {
if ($this->_type & self::FINISH) {
* to display the navigation labels or potential path
*
* @return string
- * @access public
*/
public function getNextState() {
if ($this->_type & self::FINISH) {
* @param object the QFC data container
*
* @return void
- * @access public
*/
public function validate(&$data) {
$data['valid'][$this->_name] = TRUE;
* @param object the QFC data container
*
* @return void
- * @access public
*/
public function invalidate(&$data) {
$data['valid'][$this->_name] = NULL;
* Getter for name
*
* @return string
- * @access public
*/
public function getName() {
return $this->_name;
* @param string
*
* @return void
- * @access public
*/
public function setName($name) {
$this->_name = $name;
* Getter for type
*
* @return int
- * @access public
*/
public function getType() {
return $this->_type;
}
}
-