| @@ 356-368 (lines=13) @@ | ||
| 353 | * |
|
| 354 | * @return integer |
|
| 355 | */ |
|
| 356 | public function getCodeMin() |
|
| 357 | { |
|
| 358 | $this->_calc(); |
|
| 359 | ||
| 360 | $codes = []; |
|
| 361 | foreach ($this->codes as $code) { |
|
| 362 | if (!is_null($code)) { |
|
| 363 | $codes[] = $code; |
|
| 364 | } |
|
| 365 | } |
|
| 366 | ||
| 367 | return count($codes) ? min($codes) : null; |
|
| 368 | } |
|
| 369 | ||
| 370 | /** |
|
| 371 | * Get Product_code max |
|
| @@ 375-387 (lines=13) @@ | ||
| 372 | * |
|
| 373 | * @return integer |
|
| 374 | */ |
|
| 375 | public function getCodeMax() |
|
| 376 | { |
|
| 377 | $this->_calc(); |
|
| 378 | ||
| 379 | $codes = []; |
|
| 380 | foreach ($this->codes as $code) { |
|
| 381 | if (!is_null($code)) { |
|
| 382 | $codes[] = $code; |
|
| 383 | } |
|
| 384 | } |
|
| 385 | ||
| 386 | return count($codes) ? max($codes) : null; |
|
| 387 | } |
|
| 388 | ||
| 389 | public function getMainListImage() |
|
| 390 | { |
|