protected function reindexProductsCompare(array $products)
    {
        $prepared = array();

        foreach ($products as $product_id => $product) {
            $prepared[$product['product_class_id']][$product_id] = $product;
        }

        return $prepared;
    }
protected function reindexProductsCompare(array $products)
    {
        $prepared = array();

        foreach ($products as $product_id => $product) {
            $prepared[$product['product_class_id']][$product_id] = $product;
        }

        return $prepared;
    }
protected function reindexProductsCompare ( array $ products ) { $ prepared = array ( ) ; foreach ( $ products as $ product_id => $ product ) { $ prepared [ $ product [ 'product_class_id' ] ] [ $ product_id ] = $ product ; } return $ prepared ; }
Returns an array of products indexed by a class ID
@param array $products
@return array
Returns an array of products indexed by a class ID