original_string: public function editProduct($product_id = null)
      {
          $this->setProduct($product_id);
          $this->setTitleEditProduct();
          $this->setBreadcrumbEditProduct();
  
          $this->setData('product', $this->data_product);
          $this->setData('size_units', $this->convertor->getUnitNames('size'));
          $this->setData('weight_units', $this->convertor->getUnitNames('weight'));
          $this->setData('default_currency', $this->currency->getDefault());
          $this->setData('subtract_default', $this->config->get('product_subtract', 0));
          $this->setData('classes', $this->product_class->getList(array('status' => 1)));
          $this->setData('languages', $this->language->getList(array('enabled' => true)));
  
          $this->submitEditProduct();
  
          $this->setDataFieldsEditProduct();
          $this->setDataAuthorEditProduct();
          $this->setDataRelatedEditProduct();
          $this->setDataCategoriesEditProduct();
          $this->setDataImagesEditProduct();
  
          $this->setJsEditProduct();
          $this->outputEditProduct();
      }
code: public function editProduct($product_id = null)
      {
          $this->setProduct($product_id);
          $this->setTitleEditProduct();
          $this->setBreadcrumbEditProduct();
  
          $this->setData('product', $this->data_product);
          $this->setData('size_units', $this->convertor->getUnitNames('size'));
          $this->setData('weight_units', $this->convertor->getUnitNames('weight'));
          $this->setData('default_currency', $this->currency->getDefault());
          $this->setData('subtract_default', $this->config->get('product_subtract', 0));
          $this->setData('classes', $this->product_class->getList(array('status' => 1)));
          $this->setData('languages', $this->language->getList(array('enabled' => true)));
  
          $this->submitEditProduct();
  
          $this->setDataFieldsEditProduct();
          $this->setDataAuthorEditProduct();
          $this->setDataRelatedEditProduct();
          $this->setDataCategoriesEditProduct();
          $this->setDataImagesEditProduct();
  
          $this->setJsEditProduct();
          $this->outputEditProduct();
      }
code_tokens: public function editProduct ( $ product_id = null ) { $ this -> setProduct ( $ product_id ) ; $ this -> setTitleEditProduct ( ) ; $ this -> setBreadcrumbEditProduct ( ) ; $ this -> setData ( 'product' , $ this -> data_product ) ; $ this -> setData ( 'size_units' , $ this -> convertor -> getUnitNames ( 'size' ) ) ; $ this -> setData ( 'weight_units' , $ this -> convertor -> getUnitNames ( 'weight' ) ) ; $ this -> setData ( 'default_currency' , $ this -> currency -> getDefault ( ) ) ; $ this -> setData ( 'subtract_default' , $ this -> config -> get ( 'product_subtract' , 0 ) ) ; $ this -> setData ( 'classes' , $ this -> product_class -> getList ( array ( 'status' => 1 ) ) ) ; $ this -> setData ( 'languages' , $ this -> language -> getList ( array ( 'enabled' => true ) ) ) ; $ this -> submitEditProduct ( ) ; $ this -> setDataFieldsEditProduct ( ) ; $ this -> setDataAuthorEditProduct ( ) ; $ this -> setDataRelatedEditProduct ( ) ; $ this -> setDataCategoriesEditProduct ( ) ; $ this -> setDataImagesEditProduct ( ) ; $ this -> setJsEditProduct ( ) ; $ this -> outputEditProduct ( ) ; }
docstring: Displays the product edit form
  @param integer|null $product_id
docstring_tokens: Displays the product edit form