| @@ 196-206 (lines=11) @@ | ||
| 193 | return; |
|
| 194 | } |
|
| 195 | $dataPlaces = explode(',', $strPlaces); |
|
| 196 | foreach ($dataPlaces as $places) { |
|
| 197 | if (substr_count($places, '-') === 1) { |
|
| 198 | list($begin, $end) = explode('-', $places); |
|
| 199 | for ($place = $begin; $place <= $end; $place++) { |
|
| 200 | self::getSeat($venue, $row, $venueSector, $place); |
|
| 201 | } |
|
| 202 | } |
|
| 203 | if (substr_count($places, '-') === 0) { |
|
| 204 | self::getSeat($venue, $row, $venueSector, $places); |
|
| 205 | } |
|
| 206 | } |
|
| 207 | } |
|
| 208 | ||
| 209 | private function getRows($venue, $strRows, $venueSector, $strPlaces) |
|
| @@ 212-222 (lines=11) @@ | ||
| 209 | private function getRows($venue, $strRows, $venueSector, $strPlaces) |
|
| 210 | { |
|
| 211 | $dataRows = explode(',', $strRows); |
|
| 212 | foreach ($dataRows as $rows) { |
|
| 213 | if (substr_count($rows, '-') === 1) { |
|
| 214 | list($begin, $end) = explode('-', $rows); |
|
| 215 | for ($row = $begin; $row <= $end; $row++) { |
|
| 216 | self::getPlaces($venue, $row, $venueSector, $strPlaces); |
|
| 217 | } |
|
| 218 | } |
|
| 219 | if (substr_count($rows, '-') === 0) { |
|
| 220 | self::getPlaces($venue, $rows, $venueSector, $strPlaces); |
|
| 221 | } |
|
| 222 | } |
|
| 223 | } |
|
| 224 | ||
| 225 | private function validateSeat($row, $place, $venueSector) |
|