74 if ($this->values === NULL) {
77 if ($this->currentCycleIndex === NULL || $this->currentCycleIndex >= count($this->values)) {
78 $this->currentCycleIndex = 0;
82 $this->templateVariableContainer->add($as, $currentValue);
84 $this->templateVariableContainer->remove($as);
86 $this->currentCycleIndex ++;
100 if (!
$values instanceof \Traversable) {
101 throw new \TYPO3\CMS\Fluid\Core\ViewHelper\Exception(
'CycleViewHelper only supports arrays and objects implementing \Traversable interface' , 1248728394);
103 $this->values = iterator_to_array(
$values, FALSE);
105 $this->values = array_values(
$values);
107 $this->currentCycleIndex = 0;
initializeValues($values)