Code Duplication    Length = 8-8 lines in 2 locations

class/oledrion_attributes.php 1 location

@@ 904-911 (lines=8) @@
901
     * @param  oledrion_products $product
902
     * @return array             objets des type oledrion_attributes
903
     */
904
    public function getProductMandatoryFieldsList(Oledrion_products $product)
905
    {
906
        $criteria = new CriteriaCompo();
907
        $criteria->add(new Criteria('attribute_product_id', $product->getVar('attribute_product_id'), '='));
908
        $criteria->add(new Criteria('attribute_mandatory', 1, '='));
909
910
        return $this->getObjects($criteria);
911
    }
912
913
    /**
914
     * Calcul le prix HT des options sélectionnées pour un produit

class/oledrion_gateways_options.php 1 location

@@ 93-100 (lines=8) @@
90
     * @param  string $option_name    L'option que l'on souhaite récupérer
91
     * @return object Objet de type oledrion_gateways_options
92
     */
93
    public function getGatewayOption($option_gateway, $option_name)
94
    {
95
        $criteria = new CriteriaCompo();
96
        $criteria->add(new Criteria('option_gateway', $option_gateway, '='));
97
        $criteria->add(new Criteria('option_name', $option_name, '='));
98
99
        return $this->getObjects($criteria);
100
    }
101
102
    /**
103
     * Retourne la VALEUR d'une option d'une passerelle de paiement