public function getCombinationId(array $field_value_ids, $product_id = null)
    {
        sort($field_value_ids);
        $combination_id = implode('_', $field_value_ids);
        return empty($product_id) ? $combination_id : "$product_id-$combination_id";
    }
public function getCombinationId(array $field_value_ids, $product_id = null)
    {
        sort($field_value_ids);
        $combination_id = implode('_', $field_value_ids);
        return empty($product_id) ? $combination_id : "$product_id-$combination_id";
    }
public function getCombinationId ( array $ field_value_ids , $ product_id = null ) { sort ( $ field_value_ids ) ; $ combination_id = implode ( '_' , $ field_value_ids ) ; return empty ( $ product_id ) ? $ combination_id : "$product_id-$combination_id" ; }
Creates a field combination id from an array of field value ids
@param array $field_value_ids
@param null|integer $product_id
@return string
Creates a field combination id from an array of field value ids