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