本文整理匯總了PHP中Customers::del方法的典型用法代碼示例。如果您正苦於以下問題:PHP Customers::del方法的具體用法?PHP Customers::del怎麽用?PHP Customers::del使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Customers
的用法示例。
在下文中一共展示了Customers::del方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: deletesessionAction
/**
* Delete the cart session
*/
public function deletesessionAction()
{
$this->session = new Zend_Session_Namespace('Default');
if (is_numeric($cart->contacts['customer_id'])) {
Customers::del($cart->contacts['customer_id']);
}
unset($cart);
$this->_helper->redirector('out', 'index', 'default');
}
示例2: deleteAction
/**
* deleteAction
* Delete a record previously selected by the customer
* @return unknown_type
*/
public function deleteAction()
{
$files = new Files();
$id = $this->getRequest()->getParam('id');
try {
if (is_numeric($id)) {
Customers::del($id);
}
} catch (Exception $e) {
$this->_helper->redirector('edit', 'customers', 'admin', array('id' => $id, 'mex' => $this->translator->translate('Unable to process the request at this time.') . ": " . $e->getMessage(), 'status' => 'danger'));
}
$this->_helper->redirector('list', 'customers', 'admin', array('mex' => $this->translator->translate('The task requested has been executed successfully.'), 'status' => 'success'));
}