19 require_once(BASE.
"wcmf/lib/presentation/class.Controller.php");
20 require_once(BASE.
"wcmf/lib/util/class.SessionData.php");
84 parent::initialize($request, $response);
87 if ($request->getAction() ==
'continue')
90 if ($session->exist($this->STEP_SESSION_VARNAME))
91 $this->_curStep = $session->get($this->STEP_SESSION_VARNAME);
100 $session->set($this->ONE_CALL_SESSION_VARNAME, $request->getBooleanValue(
'oneCall',
false));
102 $step = $this->_curStep+1;
103 $session->set($this->STEP_SESSION_VARNAME, $step);
122 if ($this->_curStep > 1)
127 $this->_response->setValue(
'stepNumber', $this->_curStep);
131 $stepsArray = array();
133 array_push($stepsArray,
'.');
134 $this->_response->setValue(
'stepsArray', $stepsArray);
135 $this->_response->setValue(
'displayText', $this->
getDisplayText($this->_curStep));
138 $this->_response->setValue(
'summaryText', $this->
getSummaryText());
141 if ($session->get($this->ONE_CALL_SESSION_VARNAME) ==
false) {
147 $this->_response->setAction(
'continue');
154 $this->_response->setAction(
'done');
166 return $this->_curStep-1;
175 WCMFException::throwEx(
"getNumberOfSteps() must be implemented by derived class: ".get_class($this), __FILE__, __LINE__);
185 WCMFException::throwEx(
"getDisplayText() must be implemented by derived class: ".get_class($this), __FILE__, __LINE__);
194 WCMFException::throwEx(
"getSummaryText() must be implemented by derived class: ".get_class($this), __FILE__, __LINE__);
208 WCMFException::throwEx(
"processPart() must be implemented by derived class: ".get_class($this), __FILE__, __LINE__);
LongTaskController is a controller that may be used as base class for tasks, that require a long exec...
throwEx($message, $file='', $line='')
Controller is the base class of all controllers. If a Controller has a view it is expected to reside ...
$ONE_CALL_SESSION_VARNAME
initialize(&$request, &$response)