コード例 #1
0
ファイル: Role.php プロジェクト: farhan4648gul/developer-side
 public static function arrayRoles()
 {
     $rolelist = Role::all();
     $arrayRole = array();
     foreach ($rolelist as $value) {
         if (Auth::check() && Auth::user()->role != 1 && $value->roleid != 1) {
             $arrayRole[$value->roleid] = $value->role;
         } else {
             $arrayRole[$value->roleid] = $value->role;
         }
     }
     return $arrayRole;
 }
コード例 #2
0
 /**
  * Flow Step Managment function
  * Component : step, stepinfo, resetstepdata,  deletestep
  * Method : ajax post get
  * @return void
  * @author joharijumali@gmail.com
  **/
 public function get_step()
 {
     $data['flow'] = Str::title(Flow::find(URI::segment(5))->flowname);
     $data['steplist'] = Menu::flowtree(URI::segment(5));
     $data['allrole'] = Role::arrayRoles();
     $data['pagelist'] = $listpage = Page::listSteppages();
     return View::make('admin::modul.step', $data);
 }