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