@@ 45-67 (lines=23) @@ | ||
42 | $this->times = array(); |
|
43 | } |
|
44 | ||
45 | public function process() |
|
46 | { |
|
47 | $times = $this->times; |
|
48 | // needed due to quirks with __set |
|
49 | $time = DBDatetime::now()->Rfc2822(); |
|
50 | $times[] = $time; |
|
51 | $this->times = $times; |
|
52 | ||
53 | $this->addMessage('Updated time to ' . $time); |
|
54 | sleep(1); |
|
55 | ||
56 | // make sure we're incrementing |
|
57 | $this->currentStep++; |
|
58 | ||
59 | // if ($this->currentStep > 1) { |
|
60 | // $this->currentStep = 1; |
|
61 | // } |
|
62 | ||
63 | // and checking whether we're complete |
|
64 | if ($this->currentStep >= $this->totalSteps) { |
|
65 | $this->isComplete = true; |
|
66 | } |
|
67 | } |
|
68 | } |
|
69 |
@@ 36-54 (lines=19) @@ | ||
33 | $this->totalSteps = 5; |
|
34 | } |
|
35 | ||
36 | public function process() |
|
37 | { |
|
38 | $times = $this->times; |
|
39 | // needed due to quirks with __set |
|
40 | $time = DBDatetime::now()->Rfc2822(); |
|
41 | $times[] = $time; |
|
42 | $this->times = $times; |
|
43 | ||
44 | $this->addMessage('Updated time to ' . $time); |
|
45 | sleep(1); |
|
46 | ||
47 | // make sure we're incrementing |
|
48 | $this->currentStep++; |
|
49 | ||
50 | // and checking whether we're complete |
|
51 | if ($this->currentStep == 5) { |
|
52 | $this->isComplete = true; |
|
53 | } |
|
54 | } |
|
55 | } |
|
56 |