From 486d60cdd752cb706af14fce9cdbca3705ab57db Mon Sep 17 00:00:00 2001 From: Vitaly Artemev Date: Thu, 21 Jan 2016 11:12:42 +0300 Subject: [PATCH] =?UTF-8?q?Updated=20=D0=9F=D1=80=D0=B8=D0=BC=D0=B5=D1=80?= =?UTF-8?q?=D1=8B=20(markdown)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Примеры.md | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) 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