public function getList()
    {
        $result = &gplcart_static('product.compare.list');

        if (isset($result)) {
            return (array) $result;
        }

        $this->hook->attach('product.compare.list.before', $result, $this);

        if (isset($result)) {
            return (array) $result;
        }

        $cookie = $this->request->cookie('product_compare', '', 'string');
        $result = array_filter(array_map('trim', explode('|', urldecode($cookie))), 'ctype_digit');
        $this->hook->attach('product.compare.list.after', $result, $this);
        return $result;
    }
public function getList()
    {
        $result = &gplcart_static('product.compare.list');

        if (isset($result)) {
            return (array) $result;
        }

        $this->hook->attach('product.compare.list.before', $result, $this);

        if (isset($result)) {
            return (array) $result;
        }

        $cookie = $this->request->cookie('product_compare', '', 'string');
        $result = array_filter(array_map('trim', explode('|', urldecode($cookie))), 'ctype_digit');
        $this->hook->attach('product.compare.list.after', $result, $this);
        return $result;
    }
public function getList ( ) { $ result = & gplcart_static ( 'product.compare.list' ) ; if ( isset ( $ result ) ) { return ( array ) $ result ; } $ this -> hook -> attach ( 'product.compare.list.before' , $ result , $ this ) ; if ( isset ( $ result ) ) { return ( array ) $ result ; } $ cookie = $ this -> request -> cookie ( 'product_compare' , '' , 'string' ) ; $ result = array_filter ( array_map ( 'trim' , explode ( '|' , urldecode ( $ cookie ) ) ) , 'ctype_digit' ) ; $ this -> hook -> attach ( 'product.compare.list.after' , $ result , $ this ) ; return $ result ; }
Returns an array of product ID to be compared
@return array
Returns an array of product ID to be compared