|
@@ -24,7 +24,7 @@ discard block |
|
|
block discarded – undo |
|
24
|
24
|
'customer.property.type.id' => array( |
|
25
|
25
|
'code' => 'customer.property.type.id', |
|
26
|
26
|
'internalcode' => 'ezpprty."id"', |
|
27
|
|
- 'internaldeps' => array( 'LEFT JOIN "ezp_user_property_type" AS ezpprty ON ( ezppr."typeid" = ezpprty."id" )' ), |
|
|
27
|
+ 'internaldeps' => array('LEFT JOIN "ezp_user_property_type" AS ezpprty ON ( ezppr."typeid" = ezpprty."id" )'), |
|
28
|
28
|
'label' => 'Property type ID', |
|
29
|
29
|
'type' => 'integer', |
|
30
|
30
|
'internaltype' => \Aimeos\MW\DB\Statement\Base::PARAM_INT, |
|
@@ -105,10 +105,10 @@ discard block |
|
|
block discarded – undo |
|
105
|
105
|
* |
|
106
|
106
|
* @param \Aimeos\MShop\Context\Item\Iface $context Context object |
|
107
|
107
|
*/ |
|
108
|
|
- public function __construct( \Aimeos\MShop\Context\Item\Iface $context ) |
|
|
108
|
+ public function __construct(\Aimeos\MShop\Context\Item\Iface $context) |
|
109
|
109
|
{ |
|
110
|
|
- parent::__construct( $context ); |
|
111
|
|
- $this->setResourceName( 'db-customer' ); |
|
|
110
|
+ parent::__construct($context); |
|
|
111
|
+ $this->setResourceName('db-customer'); |
|
112
|
112
|
} |
|
113
|
113
|
|
|
114
|
114
|
|
|
@@ -117,14 +117,14 @@ discard block |
|
|
block discarded – undo |
|
117
|
117
|
* |
|
118
|
118
|
* @param array $siteids List of IDs for sites whose entries should be deleted |
|
119
|
119
|
*/ |
|
120
|
|
- public function cleanup( array $siteids ) |
|
|
120
|
+ public function cleanup(array $siteids) |
|
121
|
121
|
{ |
|
122
|
122
|
$path = 'mshop/customer/manager/property/type/submanagers'; |
|
123
|
|
- foreach( $this->getContext()->getConfig()->get( $path, [] ) as $domain ) { |
|
124
|
|
- $this->getObject()->getSubManager( $domain )->cleanup( $siteids ); |
|
|
123
|
+ foreach ($this->getContext()->getConfig()->get($path, []) as $domain) { |
|
|
124
|
+ $this->getObject()->getSubManager($domain)->cleanup($siteids); |
|
125
|
125
|
} |
|
126
|
126
|
|
|
127
|
|
- $this->cleanupBase( $siteids, 'mshop/customer/manager/property/type/ezpublish/delete' ); |
|
|
127
|
+ $this->cleanupBase($siteids, 'mshop/customer/manager/property/type/ezpublish/delete'); |
|
128
|
128
|
} |
|
129
|
129
|
|
|
130
|
130
|
|
|
@@ -134,11 +134,11 @@ discard block |
|
|
block discarded – undo |
|
134
|
134
|
* @param boolean $withsub Return also the resource type of sub-managers if true |
|
135
|
135
|
* @return array Type of the manager and submanagers, subtypes are separated by slashes |
|
136
|
136
|
*/ |
|
137
|
|
- public function getResourceType( $withsub = true ) |
|
|
137
|
+ public function getResourceType($withsub = true) |
|
138
|
138
|
{ |
|
139
|
139
|
$path = 'mshop/customer/manager/property/type/submanagers'; |
|
140
|
140
|
|
|
141
|
|
- return $this->getResourceTypeBase( 'customer/property/type', $path, [], $withsub ); |
|
|
141
|
+ return $this->getResourceTypeBase('customer/property/type', $path, [], $withsub); |
|
142
|
142
|
} |
|
143
|
143
|
|
|
144
|
144
|
|
|
@@ -148,11 +148,11 @@ discard block |
|
|
block discarded – undo |
|
148
|
148
|
* @param boolean $withsub Return also attributes of sub-managers if true |
|
149
|
149
|
* @return array List of attribute items implementing \Aimeos\MW\Criteria\Attribute\Iface |
|
150
|
150
|
*/ |
|
151
|
|
- public function getSearchAttributes( $withsub = true ) |
|
|
151
|
+ public function getSearchAttributes($withsub = true) |
|
152
|
152
|
{ |
|
153
|
153
|
$path = 'mshop/customer/manager/property/type/submanagers'; |
|
154
|
154
|
|
|
155
|
|
- return $this->getSearchAttributesBase( $this->searchConfig, $path, [], $withsub ); |
|
|
155
|
+ return $this->getSearchAttributesBase($this->searchConfig, $path, [], $withsub); |
|
156
|
156
|
} |
|
157
|
157
|
|
|
158
|
158
|
|
|
@@ -163,9 +163,9 @@ discard block |
|
|
block discarded – undo |
|
163
|
163
|
* @param string|null $name Name of the implementation, will be from configuration (or Default) if null |
|
164
|
164
|
* @return \Aimeos\MShop\Common\Manager\Iface Manager for different extensions, e.g types, lists etc. |
|
165
|
165
|
*/ |
|
166
|
|
- public function getSubManager( $manager, $name = null ) |
|
|
166
|
+ public function getSubManager($manager, $name = null) |
|
167
|
167
|
{ |
|
168
|
|
- return $this->getSubManagerBase( 'customer', 'property/type/' . $manager, ( $name === null ? 'Ezpublish' : $name ) ); |
|
|
168
|
+ return $this->getSubManagerBase('customer', 'property/type/'.$manager, ($name === null ? 'Ezpublish' : $name)); |
|
169
|
169
|
} |
|
170
|
170
|
|
|
171
|
171
|
|