X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FStateMachine.php;h=b1cd60f6201c0509b761b5c4377fe4b98a946ac7;hb=65b864822c40c7f0134513eafd2734ca62f7d42b;hp=33ac08229641640336abe9b940a2ae112d85a20e;hpb=afed0de9c0305abb1c011d6e87fd5e7a1ddee543;p=civicrm-core.git diff --git a/CRM/Core/StateMachine.php b/CRM/Core/StateMachine.php index 33ac082296..b1cd60f620 100644 --- a/CRM/Core/StateMachine.php +++ b/CRM/Core/StateMachine.php @@ -87,8 +87,10 @@ class CRM_Core_StateMachine { * * @param object $controller the controller for this state machine * - * @return object - * @access public + * @param \const|int $action + * + * @return \CRM_Core_StateMachine + @access public */ function __construct(&$controller, $action = CRM_Core_Action::NONE) { $this->_controller = &$controller; @@ -253,12 +255,12 @@ class CRM_Core_StateMachine { * * @access public * - * @param array $states states is an array of arrays. Each element + * @param array $pages (reference ) the array of page objects + * + * @internal param array $states states is an array of arrays. Each element * of the top level array describes a state. Each state description * includes the name, the display name and the class name * - * @param array $pages (reference ) the array of page objects - * * @return void */ function addSequentialPages(&$pages) { @@ -355,18 +357,30 @@ class CRM_Core_StateMachine { return $this->_controller->getContent(); } + /** + * @return mixed + */ function getDestination() { return $this->_controller->getDestination(); } + /** + * @return mixed + */ function getSkipRedirection() { return $this->_controller->getSkipRedirection(); } + /** + * @return mixed + */ function fini() { return $this->_controller->fini(); } + /** + * @return mixed + */ function cancelAction() { return $this->_controller->cancelAction(); }