X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FActivity%2FStateMachine%2FSearch.php;h=3525c173569a1ad8bcc55bbbaa8b28c5cb940108;hb=645ee340d9b8d81fcce96e108abc4a8a24f134cc;hp=7a91f7f05fbbbe8db8568d01ecc05d64932332fa;hpb=1761553f7e28866ef0c0a9f54abbb222487cea5c;p=civicrm-core.git diff --git a/CRM/Activity/StateMachine/Search.php b/CRM/Activity/StateMachine/Search.php index 7a91f7f05f..3525c17356 100644 --- a/CRM/Activity/StateMachine/Search.php +++ b/CRM/Activity/StateMachine/Search.php @@ -37,14 +37,15 @@ class CRM_Activity_StateMachine_Search extends CRM_Core_StateMachine { * The task that the wizard is currently processing * * @var string - * @protected */ protected $_task; /** * Class constructor + * @param object $controller + * @param \const|int $action */ - function __construct($controller, $action = CRM_Core_Action::NONE) { + public function __construct($controller, $action = CRM_Core_Action::NONE) { parent::__construct($controller, $action); $this->_pages = array(); @@ -70,14 +71,15 @@ class CRM_Activity_StateMachine_Search extends CRM_Core_StateMachine { * to avoid using conditional state machine, much more efficient * and simpler * - * @param CRM_Core_Controller $controller the controller object + * @param CRM_Core_Controller $controller + * The controller object. * * @param string $formName * - * @return string the name of the form that will handle the task - * @access protected + * @return string + * the name of the form that will handle the task */ - function taskName($controller, $formName = 'Search') { + public function taskName($controller, $formName = 'Search') { // total hack, check POST vars and then session to determine stuff $value = CRM_Utils_Array::value('task', $_POST); if (!isset($value)) { @@ -91,9 +93,8 @@ class CRM_Activity_StateMachine_Search extends CRM_Core_StateMachine { * Return the form name of the task * * @return string - * @access public */ - function getTaskFormName() { + public function getTaskFormName() { return CRM_Utils_String::getClassName($this->_task); } @@ -109,8 +110,7 @@ class CRM_Activity_StateMachine_Search extends CRM_Core_StateMachine { /** * @return bool */ - function shouldReset() { + public function shouldReset() { return FALSE; } } -