コード例 #1
0
 /**
  * Delete Product
  *
  * Delete ProductDBO from the database
  */
 function delete_product()
 {
     // Delete Product DBO
     delete_ProductDBO($this->get['product']);
     // Success - go back to products page
     $this->setMessage(array("type" => "[PRODUCT_DELETED]", "args" => array($this->session['product_dbo']->getName())));
     $this->gotoPage("services_products");
 }
コード例 #2
0
 /**
  * Delete Product
  *
  * Delete ProductDBO from database
  */
 function removeProduct()
 {
     foreach ($this->post['products'] as $dbo) {
         // Delete Product DBO
         delete_ProductDBO($dbo);
     }
     // Success - go back to products page
     $this->setMessage(array("type" => "[PRODUCTS_DELETED]"));
     $this->gotoPage("services_products");
 }