Suggestion #29294
IncreaseValue ViewHelper
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; } }