Updated Примеры (markdown)

Vitaly Artemev 2016-01-21 11:12:42 +03:00
parent 37baa06fed
commit 486d60cdd7

@ -108,7 +108,6 @@ class OffersHandler implements HandlerInterface
#####CategoriesHandler.php
```php
<?php
class CategoriesHandler implements HandlerInterface
@ -129,6 +128,24 @@ class CategoriesHandler implements HandlerInterface
}
}
```
#####ExtendedOffersBuilder.php
```php
<?php
class ExtendedOffersBuilder extends Builder
{
public function buildCategories()
{
$query = $this->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
<?php
class PaymentTypesHandler implements HandlerInterface