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


PHP Operator::load方法代碼示例

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


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

示例1: template_new_ggi_mail

 public static function template_new_ggi_mail($param, $is_resend = false)
 {
     $param = json_decode(json_encode($param), FALSE);
     $user_name = str_replace('@gameloft.com', '', $_SERVER['REMOTE_USER']);
     $user_name = str_replace('.', ' ', ucfirst($user_name));
     $to[] = $_SERVER['REMOTE_USER'];
     if (ENVIRONMENT == GOLD || ENVIRONMENT == STAGING) {
         $cc[] = MAIL_WOA;
         $bcc[] = 'usmar.soto@gameloft.com';
     }
     $platform = Platform::load($param->platform_id)->to_array();
     $operator = Operator::load($param->operator_id)->to_array();
     $country = Country::load($param->country_id)->to_array();
     $product = Product::load($param->product_id)->to_array();
     $store = Appstores::load($param->store_id)->to_array();
     $template_params = array();
     $template_params['user_name'] = $user_name;
     $template_params['platform_name'] = $platform['name'];
     $template_params['operator_name'] = $operator['name'];
     $template_params['country_name'] = $country['name'];
     $template_params['product_name'] = $product['name'];
     $template_params['product_id'] = $param->product_id;
     $template_params['ggi'] = $param->ggi;
     $template_params['store_name'] = $store['name'];
     $template_params['deployment_silo'] = $param->deployment_silo;
     $tpl = (object) $template_params;
     //Get email template
     ob_start();
     $subject = 'TUNA - Request of new project (GGI): ' . $param->ggi;
     include_once 'mail_templates/new_project.php';
     $body = ob_get_contents();
     ob_end_clean();
     //Send the email
     $m = new Mail('text/html');
     $m->to(@implode(',', $to));
     $m->cc(@implode(',', $cc));
     $m->bcc(@implode(',', $bcc));
     $m->subject($subject);
     $m->body($body);
     $m->send();
     TunaLog::info_log(__CLASS__, __FUNCTION__, $_SERVER['REMOTE_USER'], '');
 }
開發者ID:xpeknw,項目名稱:vc,代碼行數:42,代碼來源:Mail.class.php


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