本文整理汇总了PHP中Self::getInvitesFromEid方法的典型用法代码示例。如果您正苦于以下问题:PHP Self::getInvitesFromEid方法的具体用法?PHP Self::getInvitesFromEid怎么用?PHP Self::getInvitesFromEid使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Self
的用法示例。
在下文中一共展示了Self::getInvitesFromEid方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: details
public static function details(Request $request)
{
//Note this is piggybacking on regular event controller functions, beware of changing them!!
$eid = $request->eid;
$event = Event::getEvent($eid);
$invites = Self::getInvitesFromEid($eid);
$all_poll_options = Self::getPollOptionsFromEid($eid);
$itemslist = Event::getEventItems($eid);
$userRSVP = Invite::getUserRSVP($eid);
$items = [];
$item_users = [];
$ticketcost = (string) $event['ticketprice'];
if (!strpos($ticketcost, '.')) {
$ticketcost = $ticketcost . ".00";
}
foreach ($itemslist as $item) {
array_push($items, $item);
if ($item->uid != 0) {
$tmpUser = User::getById($item->uid);
array_push($item_users, $tmpUser);
}
}
$chat_messages = MessageController::getMessagesFromEid($eid);
return response()->json(compact('event', 'all_poll_options', 'items', 'invites', 'chat_messages', 'item_users', 'userRSVP', 'ticketcost'));
}
示例2: sendAllChangeNotifications
public function sendAllChangeNotifications($eid)
{
$invites = Self::getInvitesFromEid($eid);
foreach ($invites as $invite) {
self::sendChangeNotification($invite);
}
}