當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Default_Model_Usermanagement::getEmpForConfigMail方法代碼示例

本文整理匯總了PHP中Default_Model_Usermanagement::getEmpForConfigMail方法的典型用法代碼示例。如果您正苦於以下問題:PHP Default_Model_Usermanagement::getEmpForConfigMail方法的具體用法?PHP Default_Model_Usermanagement::getEmpForConfigMail怎麽用?PHP Default_Model_Usermanagement::getEmpForConfigMail使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Default_Model_Usermanagement的用法示例。


在下文中一共展示了Default_Model_Usermanagement::getEmpForConfigMail方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: send_configuration_mail

 /**
  * This function is used to send mail when we delete any configurations.
  * @param String $config_menu_name  = name of configuration screen (Ex: Positions)
  * @param String $config_name       = name of configuration (Ex: "Developer one")
  */
 public static function send_configuration_mail($config_menu_name, $config_name)
 {
     $auth = Zend_Auth::getInstance();
     if ($auth->hasIdentity()) {
         $sess_values = $auth->getStorage()->read();
     }
     $users_model = new Default_Model_Usermanagement();
     $emp_arr = $users_model->getEmpForConfigMail();
     foreach ($emp_arr as $empdata) {
         $text = "<div style='padding: 0; text-align: left; font-size:14px; font-family:Arial, Helvetica, sans-serif;'>\n                    <span style='color:#3b3b3b;'>Dear " . ucfirst($empdata['userfullname']) . ",</span><br />\n\n                        <div style='padding:20px 0 0 0;color:#3b3b3b;'><b>" . ucfirst($config_name) . "</b> " . $config_menu_name . " in configurations has been deleted by " . $sess_values->userfullname . ". </div>    \n                        <div style='padding:20px 0 10px 0;'>Please <a href='" . BASE_URL . "index/popup' target='_blank' style='color:#b3512f;'>click here</a> to login and check the details.</div>\t\t\n\n                    </div>  ";
         $options['subject'] = APPLICATION_NAME . ': ' . ucfirst($config_menu_name) . ' is deleted';
         $options['header'] = ucfirst($config_menu_name) . ' is deleted';
         $options['toEmail'] = $empdata['emailaddress'];
         $options['toName'] = $empdata['userfullname'];
         $options['message'] = $text;
         $options['cron'] = 'yes';
         sapp_Global::_sendEmail($options);
     }
 }
開發者ID:rajbrt,項目名稱:sentrifugo,代碼行數:24,代碼來源:Global.php


注:本文中的Default_Model_Usermanagement::getEmpForConfigMail方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。