X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FState.php;h=323dc3df39944a90de4783ed132d74712ba17a20;hb=4846df9154866b0a33ee8ec7a1f48c65c77b670b;hp=fbd30317143a7407b49651a4cbdb3796ed006fe4;hpb=fe6a56117db7e9dada18e60f91de717a89013d86;p=civicrm-core.git diff --git a/CRM/Core/State.php b/CRM/Core/State.php index fbd3031714..323dc3df39 100644 --- a/CRM/Core/State.php +++ b/CRM/Core/State.php @@ -1,7 +1,7 @@ _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; } -} +}