1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/** |
4
|
|
|
* TechDivision\Import\Product\UrlRewrite\Utils\SqlStatementKeys |
5
|
|
|
* |
6
|
|
|
* NOTICE OF LICENSE |
7
|
|
|
* |
8
|
|
|
* This source file is subject to the Open Software License (OSL 3.0) |
9
|
|
|
* that is available through the world-wide-web at this URL: |
10
|
|
|
* http://opensource.org/licenses/osl-3.0.php |
11
|
|
|
* |
12
|
|
|
* PHP version 5 |
13
|
|
|
* |
14
|
|
|
* @author Tim Wagner <[email protected]> |
15
|
|
|
* @copyright 2016 TechDivision GmbH <[email protected]> |
16
|
|
|
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
17
|
|
|
* @link https://github.com/techdivision/import-product-url-rewrite |
18
|
|
|
* @link http://www.techdivision.com |
19
|
|
|
*/ |
20
|
|
|
|
21
|
|
|
namespace TechDivision\Import\Product\UrlRewrite\Utils; |
22
|
|
|
|
23
|
|
|
/** |
24
|
|
|
* Utility class with the SQL statements to use. |
25
|
|
|
* |
26
|
|
|
* @author Tim Wagner <[email protected]> |
27
|
|
|
* @copyright 2016 TechDivision GmbH <[email protected]> |
28
|
|
|
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
29
|
|
|
* @link https://github.com/techdivision/import-product-url-rewrite |
30
|
|
|
* @link http://www.techdivision.com |
31
|
|
|
*/ |
32
|
|
|
class SqlStatementKeys extends \TechDivision\Import\Product\Utils\SqlStatementKeys |
33
|
|
|
{ |
34
|
|
|
|
35
|
|
|
/** |
36
|
|
|
* The SQL statement to create new URL rewrite product category relations. |
37
|
|
|
* |
38
|
|
|
* @var string |
39
|
|
|
*/ |
40
|
|
|
const CREATE_URL_REWRITE_PRODUCT_CATEGORY = 'create.url_rewrite_product_category'; |
41
|
|
|
|
42
|
|
|
/** |
43
|
|
|
* The SQL statement to update an existing URL rewrite product category relation. |
44
|
|
|
* |
45
|
|
|
* @var string |
46
|
|
|
*/ |
47
|
|
|
const UPDATE_URL_REWRITE_PRODUCT_CATEGORY = 'update.url_rewrite_product_category'; |
48
|
|
|
|
49
|
|
|
/** |
50
|
|
|
* The SQL statement to remove a existing URL rewrite product category relation. |
51
|
|
|
* |
52
|
|
|
* @var string |
53
|
|
|
*/ |
54
|
|
|
const DELETE_URL_REWRITE_PRODUCT_CATEGORY = 'delete.url_rewrite_product_category'; |
55
|
|
|
|
56
|
|
|
/** |
57
|
|
|
* The SQL statement to load the URL rewrite product category relation with the passed ID. |
58
|
|
|
* |
59
|
|
|
* @var string |
60
|
|
|
*/ |
61
|
|
|
const URL_REWRITE_PRODUCT_CATEGORY = 'ur_rewrite_product_category'; |
62
|
|
|
|
63
|
|
|
/** |
64
|
|
|
* The SQL statement to load the URL rewrites by a SKU. |
65
|
|
|
* |
66
|
|
|
* @var string |
67
|
|
|
*/ |
68
|
|
|
const URL_REWRITES_BY_SKU = 'ur_rewrites.by.sku'; |
69
|
|
|
|
70
|
|
|
/** |
71
|
|
|
* The SQL statement to load the URL rewrite product category relations for the passed SKU. |
72
|
|
|
* |
73
|
|
|
* @var string |
74
|
|
|
*/ |
75
|
|
|
const URL_REWRITE_PRODUCT_CATEGORIES_BY_SKU = 'ur_rewrite_product_categories.by.sku'; |
76
|
|
|
} |
77
|
|
|
|