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