original_string: protected function setDataRatingWidgetIndexProduct()
      {
          $data = array(
              'product' => $this->data_product,
              'rating' => $this->rating->getByProduct($this->data_product['product_id'])
          );
  
          $this->setData('rating', $this->render('common/rating/static', $data));
      }
code: protected function setDataRatingWidgetIndexProduct()
      {
          $data = array(
              'product' => $this->data_product,
              'rating' => $this->rating->getByProduct($this->data_product['product_id'])
          );
  
          $this->setData('rating', $this->render('common/rating/static', $data));
      }
code_tokens: protected function setDataRatingWidgetIndexProduct ( ) { $ data = array ( 'product' => $ this -> data_product , 'rating' => $ this -> rating -> getByProduct ( $ this -> data_product [ 'product_id' ] ) ) ; $ this -> setData ( 'rating' , $ this -> render ( 'common/rating/static' , $ data ) ) ; }
docstring: Sets the product rating widget
docstring_tokens: Sets the product rating widget