protected function setProductCompare($string)
    {
        $ids = array_filter(array_map('trim', explode(',', $string)), 'ctype_digit');
        $this->data_products = $this->getProductsCompare($ids);
        $this->prepareProductsCompare($this->data_products);
    }
protected function setProductCompare($string)
    {
        $ids = array_filter(array_map('trim', explode(',', $string)), 'ctype_digit');
        $this->data_products = $this->getProductsCompare($ids);
        $this->prepareProductsCompare($this->data_products);
    }
protected function setProductCompare ( $ string ) { $ ids = array_filter ( array_map ( 'trim' , explode ( ',' , $ string ) ) , 'ctype_digit' ) ; $ this -> data_products = $ this -> getProductsCompare ( $ ids ) ; $ this -> prepareProductsCompare ( $ this -> data_products ) ; }
Set an array of product IDs to compare
@param string $string
Set an array of product IDs to compare