当前位置: 首页>>代码示例>>PHP>>正文


PHP Self::get_soc_mem_details方法代码示例

本文整理汇总了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');
 }
开发者ID:ncs-jss,项目名称:benocilaez,代码行数:36,代码来源:PagesController.php


注:本文中的Self::get_soc_mem_details方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。