Navigation Menu

Skip to content

Commit

Permalink
Renamed _aggregate() to aggregateBase()
Browse files Browse the repository at this point in the history
  • Loading branch information
aimeos committed Oct 2, 2015
1 parent 9badcf3 commit 6fa5bf2
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 16 deletions.
Expand Up @@ -88,7 +88,7 @@ public function __construct( MShop_Context_Item_Interface $context )
*/
public function aggregate( MW_Common_Criteria_Interface $search, $key )
{
return $this->_aggregate( $search, $key, 'mshop/catalog/manager/index/default/aggregate' );
return $this->aggregateBase( $search, $key, 'mshop/catalog/manager/index/default/aggregate' );
}


Expand Down
Expand Up @@ -96,7 +96,7 @@ public function __construct( MShop_Context_Item_Interface $context )
*/
public function aggregate( MW_Common_Criteria_Interface $search, $key )
{
return $this->_aggregate( $search, $key, 'mshop/catalog/manager/index/default/aggregate' );
return $this->aggregateBase( $search, $key, 'mshop/catalog/manager/index/default/aggregate' );
}


Expand Down
2 changes: 1 addition & 1 deletion lib/mshoplib/src/MShop/Catalog/Manager/Index/Default.php
Expand Up @@ -70,7 +70,7 @@ public function aggregate( MW_Common_Criteria_Interface $search, $key )
* @see mshop/catalog/manager/index/default/item/optimize
* @see mshop/catalog/manager/index/default/item/search
*/
return $this->_aggregate( $search, $key, 'mshop/catalog/manager/index/default/aggregate', array( 'product' ) );
return $this->aggregateBase( $search, $key, 'mshop/catalog/manager/index/default/aggregate', array( 'product' ) );
}


Expand Down
Expand Up @@ -132,7 +132,7 @@ public function __construct( MShop_Context_Item_Interface $context )
*/
public function aggregate( MW_Common_Criteria_Interface $search, $key )
{
return $this->_aggregate( $search, $key, 'mshop/catalog/manager/index/default/aggregate' );
return $this->aggregateBase( $search, $key, 'mshop/catalog/manager/index/default/aggregate' );
}


Expand Down
Expand Up @@ -97,7 +97,7 @@ public function __construct( MShop_Context_Item_Interface $context )
*/
public function aggregate( MW_Common_Criteria_Interface $search, $key )
{
return $this->_aggregate( $search, $key, 'mshop/catalog/manager/index/default/aggregate' );
return $this->aggregateBase( $search, $key, 'mshop/catalog/manager/index/default/aggregate' );
}


Expand Down
2 changes: 1 addition & 1 deletion lib/mshoplib/src/MShop/Common/Manager/Abstract.php
Expand Up @@ -106,7 +106,7 @@ public function rollback()
* @param string[] $required List of domain/sub-domain names like "catalog.index" that must be additionally joined
* @return array List of ID values as key and the number of counted products as value
*/
protected function _aggregate( MW_Common_Criteria_Interface $search, $key, $cfgPath, $required = array() )
protected function aggregateBase( MW_Common_Criteria_Interface $search, $key, $cfgPath, $required = array() )
{
$list = array();
$context = $this->_getContext();
Expand Down
2 changes: 1 addition & 1 deletion lib/mshoplib/src/MShop/Common/Manager/List/Abstract.php
Expand Up @@ -61,7 +61,7 @@ public function __construct( MShop_Context_Item_Interface $context )
public function aggregate( MW_Common_Criteria_Interface $search, $key )
{
$required = array( trim( $this->_prefix, '.' ) );
return $this->_aggregate( $search, $key, $this->_configPath . 'aggregate', $required );
return $this->aggregateBase( $search, $key, $this->_configPath . 'aggregate', $required );
}


Expand Down
Expand Up @@ -280,7 +280,7 @@ public function aggregate( MW_Common_Criteria_Interface $search, $key )
* @see mshop/order/manager/base/address/default/item/count
*/
$cfgkey = 'mshop/order/manager/base/address/default/aggregate';
return $this->_aggregate( $search, $key, $cfgkey, array( 'order.base.address' ) );
return $this->aggregateBase( $search, $key, $cfgkey, array( 'order.base.address' ) );
}


Expand Down
Expand Up @@ -147,7 +147,7 @@ public function aggregate( MW_Common_Criteria_Interface $search, $key )
* @see mshop/order/manager/base/coupon/default/item/count
*/
$cfgkey = 'mshop/order/manager/base/coupon/default/aggregate';
return $this->_aggregate( $search, $key, $cfgkey, array( 'order.base.coupon' ) );
return $this->aggregateBase( $search, $key, $cfgkey, array( 'order.base.coupon' ) );
}


Expand Down
2 changes: 1 addition & 1 deletion lib/mshoplib/src/MShop/Order/Manager/Base/Default.php
Expand Up @@ -186,7 +186,7 @@ public function aggregate( MW_Common_Criteria_Interface $search, $key )
* @see mshop/order/manager/base/default/item/count
*/
$cfgkey = 'mshop/order/manager/base/default/aggregate';
return $this->_aggregate( $search, $key, $cfgkey, array( 'order.base' ) );
return $this->aggregateBase( $search, $key, $cfgkey, array( 'order.base' ) );
}


Expand Down
Expand Up @@ -169,7 +169,7 @@ public function aggregate( MW_Common_Criteria_Interface $search, $key )
* @see mshop/order/manager/base/product/attribute/default/item/count
*/
$cfgkey = 'mshop/order/manager/base/product/attribute/default/aggregate';
return $this->_aggregate( $search, $key, $cfgkey, array( 'order.base.product.attribute' ) );
return $this->aggregateBase( $search, $key, $cfgkey, array( 'order.base.product.attribute' ) );
}


Expand Down
Expand Up @@ -264,7 +264,7 @@ public function aggregate( MW_Common_Criteria_Interface $search, $key )
* @see mshop/order/manager/base/product/default/item/count
*/
$cfgkey = 'mshop/order/manager/base/product/default/aggregate';
return $this->_aggregate( $search, $key, $cfgkey, array( 'order.base.product' ) );
return $this->aggregateBase( $search, $key, $cfgkey, array( 'order.base.product' ) );
}


Expand Down
Expand Up @@ -169,7 +169,7 @@ public function aggregate( MW_Common_Criteria_Interface $search, $key )
* @see mshop/order/manager/base/service/attribute/default/item/count
*/
$cfgkey = 'mshop/order/manager/base/service/attribute/default/aggregate';
return $this->_aggregate( $search, $key, $cfgkey, array( 'order.base.service.attribute' ) );
return $this->aggregateBase( $search, $key, $cfgkey, array( 'order.base.service.attribute' ) );
}


Expand Down
Expand Up @@ -196,7 +196,7 @@ public function aggregate( MW_Common_Criteria_Interface $search, $key )
* @see mshop/order/manager/base/service/default/item/count
*/
$cfgkey = 'mshop/order/manager/base/service/default/aggregate';
return $this->_aggregate( $search, $key, $cfgkey, array( 'order.base.service' ) );
return $this->aggregateBase( $search, $key, $cfgkey, array( 'order.base.service' ) );
}


Expand Down
2 changes: 1 addition & 1 deletion lib/mshoplib/src/MShop/Order/Manager/Default.php
Expand Up @@ -188,7 +188,7 @@ public function aggregate( MW_Common_Criteria_Interface $search, $key )
* @see mshop/order/manager/default/item/count
*/
$cfgkey = 'mshop/order/manager/default/aggregate';
return $this->_aggregate( $search, $key, $cfgkey, array( 'order' ) );
return $this->aggregateBase( $search, $key, $cfgkey, array( 'order' ) );
}


Expand Down
2 changes: 1 addition & 1 deletion lib/mshoplib/src/MShop/Order/Manager/Status/Default.php
Expand Up @@ -145,7 +145,7 @@ public function aggregate( MW_Common_Criteria_Interface $search, $key )
* @see mshop/order/manager/status/default/item/count
*/
$cfgkey = 'mshop/order/manager/status/default/aggregate';
return $this->_aggregate( $search, $key, $cfgkey, array( 'order.status' ) );
return $this->aggregateBase( $search, $key, $cfgkey, array( 'order.status' ) );
}


Expand Down

0 comments on commit 6fa5bf2

Please sign in to comment.