public function getRow($iterator = null) { if (!isset($iterator)) { $iterator = $this->defaultIterator(); } if ($this->columns == 0 || $this->columns == 1) { return 1 + $iterator->key(); } return 1 + (int) ($iterator->key() / $this->columns); }