本文整理汇总了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();
}