controller/common/src/Controller/Common/Coupon/Import/Csv/Base.php
protected function getData( \Aimeos\MW\Container\Content\Iface $content, $maxcnt, $codePos )
	{
		$count = 0;
		$data = [];

		while( $content->valid() && $count++ < $maxcnt )
		{
			$row = $content->current();
			$data[$row[$codePos]] = $row;
			$content->next();
		}

		return $data;
	}
protected function getData( \Aimeos\MW\Container\Content\Iface $content, $maxcnt, $codePos )
	{
		$count = 0;
		$data = [];

		while( $content->valid() && $count++ < $maxcnt )
		{
			$row = $content->current();
			$data[$row[$codePos]] = $row;
			$content->next();
		}

		return $data;
	}
protected function getData ( \ Aimeos \ MW \ Container \ Content \ Iface $ content , $ maxcnt , $ codePos ) { $ count = 0 ; $ data = [ ] ; while ( $ content -> valid ( ) && $ count ++ < $ maxcnt ) { $ row = $ content -> current ( ) ; $ data [ $ row [ $ codePos ] ] = $ row ; $ content -> next ( ) ; } return $ data ; }
Returns the rows from the CSV file up to the maximum count

@param \Aimeos\MW\Container\Content\Iface $content CSV content object
@param integer $maxcnt Maximum number of rows that should be retrieved at once
@param integer $codePos Column position which contains the unique coupon code (starting from 0)
@return array List of arrays with coupon codes as keys and list of values from the CSV file
Returns the rows from the CSV file up to the maximum count