X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FState.php;h=a926d48e2181af81d97da84f501914d7c89772c7;hb=d44a51e500618f1d9abfad4cc6de65cf20226c10;hp=88b4a593437d6ab2f30386be3fce668d84dfec5f;hpb=1761553f7e28866ef0c0a9f54abbb222487cea5c;p=civicrm-core.git diff --git a/CRM/Core/State.php b/CRM/Core/State.php index 88b4a59343..a926d48e21 100644 --- a/CRM/Core/State.php +++ b/CRM/Core/State.php @@ -74,7 +74,7 @@ class CRM_Core_State { * bring in more complexity to the framework. For now, lets keep it simple * @var int */ - CONST START = 1, FINISH = 2, SIMPLE = 4; + const START = 1, FINISH = 2, SIMPLE = 4; /** * Constructor @@ -86,9 +86,8 @@ class CRM_Core_State { * @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; @@ -97,7 +96,7 @@ class CRM_Core_State { $this->_stateMachine = &$stateMachine; } - function debugPrint() { + public function debugPrint() { CRM_Core_Error::debug("{$this->_name}, {$this->_type}", "{$this->_back}, {$this->_next}"); } @@ -107,9 +106,8 @@ class CRM_Core_State { * @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'); } @@ -125,9 +123,8 @@ class CRM_Core_State { * @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'); } @@ -142,9 +139,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; } @@ -161,9 +157,8 @@ class CRM_Core_State { * @param object the QFC data container * * @return void - * @access public */ - function validate(&$data) { + public function validate(&$data) { $data['valid'][$this->_name] = TRUE; } @@ -174,9 +169,8 @@ class CRM_Core_State { * @param object the QFC data container * * @return void - * @access public */ - function invalidate(&$data) { + public function invalidate(&$data) { $data['valid'][$this->_name] = NULL; } @@ -184,9 +178,8 @@ class CRM_Core_State { * Getter for name * * @return string - * @access public */ - function getName() { + public function getName() { return $this->_name; } @@ -196,9 +189,8 @@ class CRM_Core_State { * @param string * * @return void - * @access public */ - function setName($name) { + public function setName($name) { $this->_name = $name; } @@ -206,10 +198,8 @@ class CRM_Core_State { * Getter for type * * @return int - * @access public */ - function getType() { + public function getType() { return $this->_type; } } -