- 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>
20 lines
565 B
PHP
20 lines
565 B
PHP
<?
|
|
namespace front\factory;
|
|
|
|
class ShopStatuses {
|
|
|
|
// get_apilo_status_id
|
|
static public function get_apilo_status_id( $status_id ) {
|
|
global $mdb;
|
|
return $mdb -> get( 'pp_shop_statuses', 'apilo_status_id', [ 'id' => $status_id ] );
|
|
}
|
|
|
|
// get_shop_status_by_integration_status_id
|
|
static public function get_shop_status_by_integration_status_id( $integration, $integration_status_id )
|
|
{
|
|
global $mdb;
|
|
|
|
if ( $integration == 'apilo' )
|
|
return $mdb -> get( 'pp_shop_statuses', 'id', [ 'apilo_status_id' => $integration_status_id ] );
|
|
}
|
|
} |