mirror of
https://github.com/retailcrm/legacy.git
synced 2024-11-23 22:06:05 +03:00
Updated Примеры (markdown)
parent
37baa06fed
commit
486d60cdd7
28
Примеры.md
28
Примеры.md
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user