| @@ 241-251 (lines=11) @@ | ||
| 238 | public function getRows(Venue $venue, $strRows, VenueSector $venueSector, $strPlaces = null) |
|
| 239 | { |
|
| 240 | $dataRows = explode(',', $strRows); |
|
| 241 | foreach ($dataRows as $rows) { |
|
| 242 | if (substr_count($rows, '-') === 1) { |
|
| 243 | list($begin, $end) = explode('-', $rows); |
|
| 244 | for ($row = $begin; $row <= $end; $row++) { |
|
| 245 | self::getPlaces($venue, $row, $venueSector, $strPlaces); |
|
| 246 | } |
|
| 247 | } |
|
| 248 | if (substr_count($rows, '-') === 0) { |
|
| 249 | self::getPlaces($venue, $rows, $venueSector, $strPlaces); |
|
| 250 | } |
|
| 251 | } |
|
| 252 | return true; |
|
| 253 | } |
|
| 254 | ||
| @@ 270-280 (lines=11) @@ | ||
| 267 | return; |
|
| 268 | } |
|
| 269 | $dataPlaces = explode(',', $strPlaces); |
|
| 270 | foreach ($dataPlaces as $places) { |
|
| 271 | if (substr_count($places, '-') === 1) { |
|
| 272 | list($begin, $end) = explode('-', $places); |
|
| 273 | for ($place = $begin; $place <= $end; $place++) { |
|
| 274 | self::getSeat($venue, $row, $venueSector, $place); |
|
| 275 | } |
|
| 276 | } |
|
| 277 | if (substr_count($places, '-') === 0) { |
|
| 278 | self::getSeat($venue, $row, $venueSector, $places); |
|
| 279 | } |
|
| 280 | } |
|
| 281 | } |
|
| 282 | ||
| 283 | /** |
|