TYPO3 CMS
TYPO3_6-2
Main Page
Related Pages
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
+
Files
File List
+
File Members
+
All
$
(
_
a
c
d
e
f
h
i
l
o
p
r
s
t
u
x
+
Functions
_
a
c
d
e
f
i
l
o
p
r
s
u
x
+
Variables
$
(
_
a
d
e
h
i
p
r
s
t
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Pages
AbstractStepAction.php
Go to the documentation of this file.
1
<?php
2
namespace
TYPO3\CMS\Install\Controller\Action\Step
;
3
20
abstract
class
AbstractStepAction
extends
\TYPO3\CMS\Install\Controller\Action\AbstractAction
implements
StepInterface
{
21
25
protected
$currentStep
= 0;
26
30
protected
$totalSteps
= 0;
31
39
public
function
setStepsCounter
($current, $total) {
40
$this->currentStep = $current;
41
$this->totalSteps = $total;
42
}
43
49
public
function
getCurrentStep
() {
50
return
$this->currentStep
;
51
}
52
58
public
function
getTotalSteps
() {
59
return
$this->totalSteps
;
60
}
61
65
protected
function
assignSteps
() {
66
$steps = array();
67
$currentStep
= $this->
getCurrentStep
();
68
$totalSteps
= $this->
getTotalSteps
();
69
for
($i = 1; $i <=
$totalSteps
; $i++) {
70
$class =
''
;
71
if
($i ==
$currentStep
) {
72
$class =
'cur'
;
73
} elseif ($i <
$currentStep
) {
74
$class =
'prev'
;
75
}
76
$steps[] = array(
77
'number'
=> $i,
78
'class'
=> $class,
79
'total'
=>
$totalSteps
,
80
);
81
}
82
$this->view->assign(
'steps'
, $steps);
83
}
84
}
TYPO3\CMS\Install\Controller\Action\Step\AbstractStepAction
Definition:
AbstractStepAction.php:20
TYPO3\CMS\Install\Controller\Action\Step
Definition:
AbstractStepAction.php:2
TYPO3\CMS\Install\Controller\Action\Step\AbstractStepAction\getCurrentStep
getCurrentStep()
Definition:
AbstractStepAction.php:49
TYPO3\CMS\Install\Controller\Action\Step\AbstractStepAction\$currentStep
$currentStep
Definition:
AbstractStepAction.php:25
TYPO3\CMS\Install\Controller\Action\Step\StepInterface
Definition:
StepInterface.php:22
TYPO3\CMS\Install\Controller\Action\Step\AbstractStepAction\setStepsCounter
setStepsCounter($current, $total)
Definition:
AbstractStepAction.php:39
TYPO3\CMS\Install\Controller\Action\AbstractAction
Definition:
AbstractAction.php:22
TYPO3\CMS\Install\Controller\Action\Step\AbstractStepAction\$totalSteps
$totalSteps
Definition:
AbstractStepAction.php:30
TYPO3\CMS\Install\Controller\Action\Step\AbstractStepAction\assignSteps
assignSteps()
Definition:
AbstractStepAction.php:65
TYPO3\CMS\Install\Controller\Action\Step\AbstractStepAction\getTotalSteps
getTotalSteps()
Definition:
AbstractStepAction.php:58
typo3
sysext
install
Classes
Controller
Action
Step
AbstractStepAction.php
Generated on Wed Aug 7 2019 09:52:29 for TYPO3 CMS by
1.8.13