本文整理匯總了PHP中Self::get_soc_mem_details方法的典型用法代碼示例。如果您正苦於以下問題:PHP Self::get_soc_mem_details方法的具體用法?PHP Self::get_soc_mem_details怎麽用?PHP Self::get_soc_mem_details使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Self
的用法示例。
在下文中一共展示了Self::get_soc_mem_details方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: add_soc_details
public function add_soc_details($team, $id = -1, $redraw = 0)
{
$status = Status::first();
if (\Auth::check()) {
$societies = User::select('id', 'society', 'email')->get();
$user = User::where('email', Session::get('email'))->first();
$members = Members::where('soc_id', Session::get('email'))->where('type', $team)->get();
$members = $members->toArray();
foreach ($members as $key => $field) {
if ($members[$key]['events'] != '' && $members[$key]['events'] != null && $members[$key]['events'] != 'null') {
$x = EventDetails::where('event_id', $members[$key]['events'])->first();
if ($x != '') {
$members[$key]['events'] = EventDetails::where('event_id', $members[$key]['events'])->first()->event_name;
} else {
$members[$key]['events'] = '';
}
}
}
$disp_events = Events::where('society_email', Session::get('email'))->get()->pluck('event_id');
$disp_event_details = array();
foreach ($disp_events as $disp) {
$disp_event_details[] = EventDetails::where('event_id', $disp)->first();
}
if ($user->priviliges == 1) {
if ($id == -1) {
return \View::make('core_team', array('society' => $user->society, 'add_winners' => $status->add_winners, 'societies' => $societies, 'members' => $members, 'type' => $team, 'disp_events' => $disp_event_details, 'action' => 'Member Details', 'admin' => 1));
} else {
return Self::get_soc_mem_details($team, $id);
}
} else {
return \View::make('core_team', array('society' => $user->society, 'add_winners' => $status->add_winners, 'societies' => $societies, 'members' => $members, 'type' => $team, 'disp_events' => $disp_event_details, 'accessor' => $user->email, 'action' => 'Member Details', 'admin' => 0));
}
return Redirect::back();
}
return Redirect::route('root');
}