- New: Domain\Integrations\IntegrationsRepository + admin\Controllers\IntegrationsController (DI) - Cleanup: removed all Sellasist and Baselinker integrations from entire project - Fix: product-edit.php Polish characters (UTF-8/CP1250 double-encoding) - Update: factory\Integrations as facade (Apilo + ShopPRO only) - Tests: 212 tests, 577 assertions Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
24 lines
525 B
PHP
24 lines
525 B
PHP
<?
|
|
namespace admin\factory;
|
|
|
|
class ShopStatuses {
|
|
// get_status
|
|
public static function get_status( $id )
|
|
{
|
|
global $mdb;
|
|
return $mdb -> get( 'pp_shop_statuses', '*', [ 'id' => $id ] );
|
|
}
|
|
|
|
// status_save
|
|
public static function status_save( $status_id, $color, $apilo_status_id )
|
|
{
|
|
global $mdb;
|
|
|
|
$mdb -> update( 'pp_shop_statuses', [
|
|
'color' => $color,
|
|
'apilo_status_id' => $apilo_status_id ? $apilo_status_id : null,
|
|
], [ 'id' => $status_id ] );
|
|
|
|
return $status_id;
|
|
}
|
|
} |