TYPO3 CMS  TYPO3_6-2
QueueService.php
Go to the documentation of this file.
1 <?php
3 
21 
25  protected $calls;
26 
30  protected $values = array();
31 
35  protected $active = FALSE;
36 
40  public function set(array $calls) {
41  $this->calls = $calls;
42  $this->active = TRUE;
43  }
44 
48  public function get() {
49  return $this->calls;
50  }
51 
55  public function isActive() {
56  return $this->active;
57  }
58 
59  public function setActive($active = TRUE) {
60  $this->active = (bool)$active;
61  }
62 
66  public function shift() {
67  return array_shift($this->calls);
68  }
69 
74  public function addValue($identifier, $value) {
75  $this->values[$identifier] = $value;
76  }
77 
81  public function getValues() {
82  return $this->values;
83  }
84 
85 }