X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FState.php;h=afedce9c7be7c6e9c8525afa1a3a9fa34e04604e;hb=172a3c1961127d07ce1c5d40a540272c16e6b2b4;hp=fbd30317143a7407b49651a4cbdb3796ed006fe4;hpb=87d422669cee2e65706fe72821613ad846cd0adb;p=civicrm-core.git diff --git a/CRM/Core/State.php b/CRM/Core/State.php index fbd3031714..afedce9c7b 100644 --- a/CRM/Core/State.php +++ b/CRM/Core/State.php @@ -1,9 +1,9 @@ _name = $name; $this->_type = $type; $this->_back = $back; @@ -97,19 +101,17 @@ class CRM_Core_State { $this->_stateMachine = &$stateMachine; } - function debugPrint() { + public function debugPrint() { CRM_Core_Error::debug("{$this->_name}, {$this->_type}", "{$this->_back}, {$this->_next}"); } /** * Given an CRM Form, jump to the previous page * - * @param object the CRM_Core_Form element under consideration - * - * @return mixed does a jump to the back state - * @access public + * @return mixed + * does a jump to the back state */ - function handleBackState(&$page) { + public function handleBackState(&$page) { if ($this->_type & self::START) { $page->handle('display'); } @@ -122,12 +124,10 @@ class CRM_Core_State { /** * Given an CRM Form, jump to the next page * - * @param object the CRM_Core_Form element under consideration - * - * @return mixed does a jump to the nextstate - * @access public + * @return mixed + * does a jump to the nextstate */ - function handleNextState(&$page) { + public function handleNextState(&$page) { if ($this->_type & self::FINISH) { $page->handle('process'); } @@ -142,9 +142,8 @@ class CRM_Core_State { * to display the navigation labels or potential path * * @return string - * @access public */ - function getNextState() { + public function getNextState() { if ($this->_type & self::FINISH) { return NULL; } @@ -158,12 +157,9 @@ class CRM_Core_State { * Mark this page as valid for the QFC framework. This is needed as * we build more advanced functionality into the StateMachine * - * @param object the QFC data container - * * @return void - * @access public */ - function validate(&$data) { + public function validate(&$data) { $data['valid'][$this->_name] = TRUE; } @@ -171,45 +167,37 @@ class CRM_Core_State { * Mark this page as invalid for the QFC framework. This is needed as * we build more advanced functionality into the StateMachine * - * @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 + * Getter for name. * * @return string - * @access public */ - function getName() { + public function getName() { return $this->_name; } /** - * Setter for name - * - * @param string + * Setter for name. * * @return void - * @access public */ - function setName($name) { + public function setName($name) { $this->_name = $name; } /** - * Getter for type + * Getter for type. * * @return int - * @access public */ - function getType() { + public function getType() { return $this->_type; } -} +}