public function getProducts(bool $force = false) : CNabuCommerceProductList
    {
        if ($this->nb_commerce_product_list->isEmpty() || $force) {
            $this->nb_commerce_product_list->clear();
            $this->nb_commerce_product_list->merge(
                CNabuCommerceProduct::getProductsForCommerce($this)
            );
        }

        return $this->nb_commerce_product_list;
    }
public function getProducts(bool $force = false) : CNabuCommerceProductList
    {
        if ($this->nb_commerce_product_list->isEmpty() || $force) {
            $this->nb_commerce_product_list->clear();
            $this->nb_commerce_product_list->merge(
                CNabuCommerceProduct::getProductsForCommerce($this)
            );
        }

        return $this->nb_commerce_product_list;
    }
public function getProducts ( bool $ force = false ) : CNabuCommerceProductList { if ( $ this -> nb_commerce_product_list -> isEmpty ( ) || $ force ) { $ this -> nb_commerce_product_list -> clear ( ) ; $ this -> nb_commerce_product_list -> merge ( CNabuCommerceProduct :: getProductsForCommerce ( $ this ) ) ; } return $ this -> nb_commerce_product_list ; }
Gets the full list of all Products in this Commerce instance.
@param bool $force If true, forces to reload list from the database storage.
@return CNabuCommerceProductList Returns a Product List with all Categories.
Gets the full list of all Products in this Commerce instance .