/** * 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"); }
/** * 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"); }