public function evaluate(Context $context, $arity, $arguments) {

		$rangeSize = intval($arguments[0]);

        $result = array();
        for ($i = 1; $i <= $rangeSize; ++ $i) {
            $result []= $i;
        }

        return $result;
    }
public function evaluate(Context $context, $arity, $arguments) {

		$rangeSize = intval($arguments[0]);

        $result = array();
        for ($i = 1; $i <= $rangeSize; ++ $i) {
            $result []= $i;
        }

        return $result;
    }
public function evaluate ( Context $ context , $ arity , $ arguments ) { $ rangeSize = intval ( $ arguments [ 0 ] ) ; $ result = array ( ) ; for ( $ i = 1 ; $ i <= $ rangeSize ; ++ $ i ) { $ result [ ] = $ i ; } return $ result ; }
This function returns an array of N elements, from 1 to N.
It is useful for creating small "for" loops in your views.
@param Context $context
@param integer $arity
@param array $arguments one element: Size of the 1..N array
@return array|mixed
This function returns an array of N elements from 1 to N . It is useful for creating small for loops in your views .