| @@ 230-240 (lines=11) @@ | ||
| 227 | public function getRows(Venue $venue, $strRows, VenueSector $venueSector, $strPlaces = null) |
|
| 228 | { |
|
| 229 | $dataRows = explode(',', $strRows); |
|
| 230 | foreach ($dataRows as $rows) { |
|
| 231 | if (substr_count($rows, '-') === 1) { |
|
| 232 | list($begin, $end) = explode('-', $rows); |
|
| 233 | for ($row = $begin; $row <= $end; $row++) { |
|
| 234 | self::getPlaces($venue, $row, $venueSector, $strPlaces); |
|
| 235 | } |
|
| 236 | } |
|
| 237 | if (substr_count($rows, '-') === 0) { |
|
| 238 | self::getPlaces($venue, $rows, $venueSector, $strPlaces); |
|
| 239 | } |
|
| 240 | } |
|
| 241 | return true; |
|
| 242 | } |
|
| 243 | ||
| @@ 259-269 (lines=11) @@ | ||
| 256 | return; |
|
| 257 | } |
|
| 258 | $dataPlaces = explode(',', $strPlaces); |
|
| 259 | foreach ($dataPlaces as $places) { |
|
| 260 | if (substr_count($places, '-') === 1) { |
|
| 261 | list($begin, $end) = explode('-', $places); |
|
| 262 | for ($place = $begin; $place <= $end; $place++) { |
|
| 263 | self::getSeat($venue, $row, $venueSector, $place); |
|
| 264 | } |
|
| 265 | } |
|
| 266 | if (substr_count($places, '-') === 0) { |
|
| 267 | self::getSeat($venue, $row, $venueSector, $places); |
|
| 268 | } |
|
| 269 | } |
|
| 270 | } |
|
| 271 | ||
| 272 | /** |
|