本文整理匯總了PHP中User_Model::get_email方法的典型用法代碼示例。如果您正苦於以下問題:PHP User_Model::get_email方法的具體用法?PHP User_Model::get_email怎麽用?PHP User_Model::get_email使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類User_Model
的用法示例。
在下文中一共展示了User_Model::get_email方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: __response_email
/**
* Shoots an email to the defined person
*/
public function __response_email($vars)
{
$settings = kohana::config('settings');
if ($vars['email_send_address'] == '0') {
// If our send address is 0, then it means we need to send the email to
// the triggering user
$to = User_Model::get_email($this->data->user_id);
} else {
$to = $vars['email_send_address'];
}
$from = array($settings['site_email'], $settings['site_name']);
$subject = $vars['email_subject'];
$message = $vars['email_body'];
return email::send($to, $from, $subject, $message, FALSE);
}
示例2: copy
public function copy(User_Model $user)
{
$this->login = $user->get_login();
$this->pass = $user->get_password();
$this->email = $user->get_email();
$this->status = $user->get_status();
$this->role = $user->get_role();
$this->uid = $user->get_uid();
$this->name = $user->get_name();
$this->surname = $user->get_surname();
}