diff --git a/Примеры.md b/Примеры.md index 6c55d99..c53d483 100644 --- a/Примеры.md +++ b/Примеры.md @@ -108,7 +108,6 @@ class OffersHandler implements HandlerInterface #####CategoriesHandler.php ```php - rule->getSQL('categories'); + $handler = $this->rule->getHandler('CategoriesHandler'); + $this->sql = $this->container->db->prepare($query); + + return $this->build($handler); + + } +} +``` ##Выгрузка заказов @@ -238,7 +255,7 @@ ORDER BY ``` -#####orders_last.php +#####orders_last.sql ```sql SELECT @@ -346,7 +363,7 @@ ORDER BY ``` -#####orders_uid.php +#####orders_uid.sql ```sql SELECT @@ -560,8 +577,7 @@ WHERE ``` -#####delivery_types.php - +#####delivery_types.sql ```sql SELECT `shop_cond_of_delivery_id` as `code`, @@ -593,7 +609,7 @@ ORDER BY #####PaymentTypesHandler.php -```sql +```php