Add new version 0.238 zip file containing updated ProductRepository and Product class files

This commit is contained in:
2026-02-05 01:53:28 +01:00
parent 16cccac782
commit 3a7be21432
28 changed files with 116323 additions and 5 deletions

View File

@@ -608,10 +608,12 @@ class Product implements \ArrayAccess
}
// pobierz stan magazynowy produktu
// FASADA - wywołuje nową klasę Domain\Product\ProductRepository
static public function get_product_quantity( int $product_id )
{
global $mdb;
return $mdb -> get( 'pp_shop_products', 'quantity', [ 'id' => $product_id ] );
$repository = new \Domain\Product\ProductRepository($mdb);
return $repository->getQuantity($product_id);
}
public static function product_categories( int $product_id )