本文整理汇总了PHP中Reminder::Address方法的典型用法代码示例。如果您正苦于以下问题:PHP Reminder::Address方法的具体用法?PHP Reminder::Address怎么用?PHP Reminder::Address使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Reminder
的用法示例。
在下文中一共展示了Reminder::Address方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: SendItOut
public static function SendItOut(Reminder $reminder)
{
$message = $reminder->Message();
$subject = "Automatic Reminder from Booked Scheduler";
/* replace 'username' and 'password' with your GoogleVoice sign-in */
$gv = new GoogleVoice("username", "password");
$addresses = explode(',', str_replace(' ', '', $reminder->Address()));
foreach ($addresses as $address) {
var_dump($address);
if (ctype_digit($address)) {
$gv->sms($address, $message);
} else {
mail($address, $subject, $message);
}
}
$repository = new ReminderRepository();
$repository->DeleteReminder($reminder->ReminderID());
return;
}
示例2: Add
/**
* @param Reminder $reminder
*/
public function Add(Reminder $reminder)
{
ServiceLocator::GetDatabase()->ExecuteInsert(new AddReminderCommand($reminder->UserID(), $reminder->Address(), $reminder->Message(), $reminder->SendTime(), $reminder->RefNumber()));
}