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