original_string: protected function deleteProductClass()
      {
          $this->controlAccess('product_class_delete');
  
          if ($this->product_class->delete($this->data_product_class['product_class_id'])) {
              $this->redirect('admin/content/product-class', $this->text('Product class has been deleted'), 'success');
          }
  
          $this->redirect('', $this->text('Product class has not been deleted'), 'warning');
      }
code: protected function deleteProductClass()
      {
          $this->controlAccess('product_class_delete');
  
          if ($this->product_class->delete($this->data_product_class['product_class_id'])) {
              $this->redirect('admin/content/product-class', $this->text('Product class has been deleted'), 'success');
          }
  
          $this->redirect('', $this->text('Product class has not been deleted'), 'warning');
      }
code_tokens: protected function deleteProductClass ( ) { $ this -> controlAccess ( 'product_class_delete' ) ; if ( $ this -> product_class -> delete ( $ this -> data_product_class [ 'product_class_id' ] ) ) { $ this -> redirect ( 'admin/content/product-class' , $ this -> text ( 'Product class has been deleted' ) , 'success' ) ; } $ this -> redirect ( '' , $ this -> text ( 'Product class has not been deleted' ) , 'warning' ) ; }
docstring: Deletes a product class
docstring_tokens: Deletes a product class