| @@ 7-19 (lines=13) @@ | ||
| 4 | ||
| 5 | class GeneratorHelper |
|
| 6 | { |
|
| 7 | public function getAllHorisontalValue($location, $data) |
|
| 8 | { |
|
| 9 | $horisontalValue = []; |
|
| 10 | $x = $location['x']; |
|
| 11 | for ($i = $x; $i <= $x; $i++) { |
|
| 12 | for ($j = 0; $j < 9; $j++) { |
|
| 13 | if (!empty($data[$i][$j])) { |
|
| 14 | $horisontalValue[] = $data[$i][$j]; |
|
| 15 | } |
|
| 16 | } |
|
| 17 | } |
|
| 18 | return $horisontalValue; |
|
| 19 | } |
|
| 20 | ||
| 21 | public function getAllVerticalValue($location, $data) |
|
| 22 | { |
|
| @@ 21-33 (lines=13) @@ | ||
| 18 | return $horisontalValue; |
|
| 19 | } |
|
| 20 | ||
| 21 | public function getAllVerticalValue($location, $data) |
|
| 22 | { |
|
| 23 | $verticalValue = []; |
|
| 24 | $y = $location['y']; |
|
| 25 | for ($i = 0; $i < 9; $i++) { |
|
| 26 | for ($j = $y; $j <= $y; $j++) { |
|
| 27 | if (!empty($data[$i][$j])) { |
|
| 28 | $verticalValue[] = $data[$i][$j]; |
|
| 29 | } |
|
| 30 | } |
|
| 31 | } |
|
| 32 | return $verticalValue; |
|
| 33 | } |
|
| 34 | ||
| 35 | public function getAllSquereValue($location, $data) |
|
| 36 | { |
|