本文整理匯總了PHP中Reminder::Prepare方法的典型用法代碼示例。如果您正苦於以下問題:PHP Reminder::Prepare方法的具體用法?PHP Reminder::Prepare怎麽用?PHP Reminder::Prepare使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Reminder
的用法示例。
在下文中一共展示了Reminder::Prepare方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: Prepare
public function Prepare($page)
{
parent::Prepare($page);
$profile = $this->user->profile();
$page->assign('profile_merge', self::ListMergeIssues($profile));
$page->assign('profile_incitation', $profile->is_old);
$page->assign('profile_last_update', $profile->last_change);
$page->assign('photo_incitation', !$profile->has_photo);
$page->assign('geocoding_incitation', Geocoder::countNonGeocoded($profile->id()));
}
示例2: Prepare
public function Prepare($page)
{
parent::Prepare($page);
$res = XDB::iterRow("SELECT sub, domain\n FROM register_subs\n WHERE uid = {?} AND type = 'list'\n ORDER BY domain", S::i('uid'));
$lists = array();
while (list($sub, $domain) = $res->next()) {
$mlist = new MailingList($sub, $domain);
list($details, ) = $mlist->getMembers();
$lists["{$sub}@{$domain}"] = $details;
}
$page->assign_by_ref('lists', $lists);
}