original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Returns an array of product ID to be compared
  @return array
docstring_tokens: Returns an array of product ID to be compared