TYPO3 Flow Base DistributionPackagesApplications

Suggestion #29294

IncreaseValue ViewHelper

Added by David Greiner almost 4 years ago.

Status:New Start date:2011-08-27
Priority:Could have Due date:
Assigned To:- % Done:

0%

Category:-
Target version:-
Has patch:No Tags:

Description

This ViewHelper increases a value in foreach-loops.


    protected $increasedValue;

    /**
     *
     * @param int $value 
     * @validate $value IntegerValidator
     * @return int
     */
    public function render($value) {

        $this->increasedValue = $this->increasedValue+$value;
        return $this->increasedValue;
    }
}

Also available in: Atom PDF