| @@ 118-130 (lines=13) @@ | ||
| 115 | return $this->src; |
|
| 116 | } |
|
| 117 | ||
| 118 | public function getRow() |
|
| 119 | { |
|
| 120 | if ($this->index < $this->getCurrentPageRowsCount()) { |
|
| 121 | $this->index++; |
|
| 122 | $item = $this->iterator->current(); |
|
| 123 | $this->iterator->next(); |
|
| 124 | $row = new ObjectDataRow($item, $this->getRowId()); |
|
| 125 | Event::fire(self::EVENT_FETCH_ROW, [$row, $this]); |
|
| 126 | return $row; |
|
| 127 | } else { |
|
| 128 | return null; |
|
| 129 | } |
|
| 130 | } |
|
| 131 | ||
| 132 | protected $_count; |
|
| 133 | ||
| @@ 96-108 (lines=13) @@ | ||
| 93 | return $this->finalSrc(); |
|
| 94 | } |
|
| 95 | ||
| 96 | public function getRow() |
|
| 97 | { |
|
| 98 | if ($this->index < $this->count()) { |
|
| 99 | $this->index++; |
|
| 100 | $item = $this->iterator->current(); |
|
| 101 | $this->iterator->next(); |
|
| 102 | $row = new EloquentDataRow($item, $this->getRowId()); |
|
| 103 | Event::fire(self::EVENT_FETCH_ROW, [$row, $this]); |
|
| 104 | return $row; |
|
| 105 | } else { |
|
| 106 | return null; |
|
| 107 | } |
|
| 108 | } |
|
| 109 | ||
| 110 | /** |
|
| 111 | * {@inheritdoc} |
|