本文整理汇总了PHP中sapp_Global::generateEmailConstants方法的典型用法代码示例。如果您正苦于以下问题:PHP sapp_Global::generateEmailConstants方法的具体用法?PHP sapp_Global::generateEmailConstants怎么用?PHP sapp_Global::generateEmailConstants使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类sapp_Global
的用法示例。
在下文中一共展示了sapp_Global::generateEmailConstants方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: deleteAction
/**
* This action is used to delete email contact.
* @parameters
* @param objid = id of email contact.
*
* @return {String} = success/failure message
*/
public function deleteAction()
{
$auth = Zend_Auth::getInstance();
if ($auth->hasIdentity()) {
$loginUserId = $auth->getStorage()->read()->id;
}
$id = $this->_request->getParam('objid');
$messages['message'] = '';
$actionflag = 3;
if ($id) {
$econtact_model = new Default_Model_Emailcontacts();
$menumodel = new Default_Model_Menu();
$emailgroupdata = $econtact_model->getgroupEmailRecord($id);
$data = array('isactive' => 0, 'modifieddate' => gmdate("Y-m-d H:i:s"));
$where = array('id=?' => $id);
$Id = $econtact_model->SaveorUpdateEmailcontactsData($data, $where);
if ($Id == 'update') {
sapp_Global::generateEmailConstants();
$menuidArr = $menumodel->getMenuObjID('/emailcontacts');
$menuID = $menuidArr[0]['id'];
sapp_Global::logManager($menuID, $actionflag, $loginUserId, $id);
$configmail = sapp_Global::send_configuration_mail('Email Group', $emailgroupdata[0]['groupEmail']);
$messages['message'] = 'Email contact deleted successfully.';
$messages['msgtype'] = 'success';
} else {
$messages['message'] = 'Email contact cannot be deleted.';
$messages['msgtype'] = 'error';
}
} else {
$messages['message'] = 'Email contact cannot be deleted.';
$messages['msgtype'] = 'error';
}
$this->_helper->json($messages);
}