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


PHP ACL::buildACL方法代码示例

本文整理汇总了PHP中ACL::buildACL方法的典型用法代码示例。如果您正苦于以下问题:PHP ACL::buildACL方法的具体用法?PHP ACL::buildACL怎么用?PHP ACL::buildACL使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ACL的用法示例。


在下文中一共展示了ACL::buildACL方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: index

 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     if (ACL::checkUserPermission('games.roulette') == false) {
         return Redirect::action('dashboard');
     }
     $title = Lang::get('Roulette Game List');
     $tablelist = Gametables::with('gamedetails', 'operator')->get();
     $data = array('acl' => ACL::buildACL(), 'tablelist' => $tablelist, 'title' => $title);
     return View::make('games/index', $data);
 }
开发者ID:pacificcasinohotel,项目名称:pointsystem,代码行数:15,代码来源:GameController.php

示例2: winnings

 public function winnings()
 {
     if (ACL::checkUserPermission('reports.winnings') == false) {
         return Redirect::action('dashboard');
     }
     $game_winnings = Gamewinnings::with('channel.tabledetails.operator')->get();
     $title = Lang::get('Winning Numbers');
     $data = array('acl' => ACL::buildACL(), 'winnings' => $game_winnings, 'title' => $title);
     return View::make('reports/winnings', $data);
 }
开发者ID:pacificcasinohotel,项目名称:pointsystem,代码行数:10,代码来源:ReportsController.php

示例3: index

 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     if (ACL::checkUserPermission('settings.groups') == false) {
         return Redirect::action('dashboard');
     }
     $groupList = Group::all();
     $title = Lang::get('Group');
     $acl = ACL::buildACL();
     return View::make('groups/index', array('groupList' => $groupList, 'title' => $title));
 }
开发者ID:pacificcasinohotel,项目名称:pointsystem,代码行数:15,代码来源:GroupController.php

示例4: index

 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     if (ACL::checkUserPermission('settings.user') == false) {
         return Redirect::action('dashboard');
     }
     $userList = User::all();
     $title = Lang::get('User');
     $status = array('0' => array('label' => 'default', 'status' => 'Inactive'), '1' => array('label' => 'success', 'status' => 'Active'));
     return View::make('user/index', array('acl' => ACL::buildACL(), 'userList' => $userList, 'title' => $title, 'status' => $status));
 }
开发者ID:pacificcasinohotel,项目名称:pointsystem,代码行数:15,代码来源:UsersController.php

示例5: index

 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     if (ACL::checkUserPermission('settings.permission') == false) {
         return Redirect::action('dashboard');
     }
     $permission = Permission::all();
     $title = Lang::get('Permission');
     $acl = ACL::buildACL();
     return View::make('permission/index', array('acl' => $acl, 'permissionList' => $permission, 'title' => $title));
 }
开发者ID:pacificcasinohotel,项目名称:pointsystem,代码行数:15,代码来源:PermissionController.php

示例6: index

 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     if (ACL::checkUserPermission('settings.index') == false) {
         return Redirect::action('dashboard');
     }
     $title = Lang::get('Setting List');
     $settingList = Settings::all();
     $acl = ACL::buildACL();
     $data = array('title' => $title, 'acl' => $acl, 'settingList' => $settingList);
     return View::make('settings/index', $data);
 }
开发者ID:pacificcasinohotel,项目名称:pointsystem,代码行数:16,代码来源:SettingsController.php

示例7: player

 public function player()
 {
     if (ACL::checkUserPermission('points.player') == false) {
         return Redirect::action('dashboard');
     }
     $form_open = Form::open(array('method' => 'post', 'files' => true, 'id' => 'form-player-csv', 'class' => 'smart-form', 'role' => 'form'));
     $userList = UserMember::with('user', 'group', 'points')->where('group_id', 4)->get();
     $title = Lang::get('Player List');
     $client_ip = Request::getClientIp(true);
     $data = array('acl' => ACL::buildACL(), 'userList' => $userList, 'title' => $title, 'form_open' => $form_open, 'client_ip' => $client_ip);
     return View::make('points/index', $data);
 }
开发者ID:pacificcasinohotel,项目名称:pointsystem,代码行数:12,代码来源:PointsController.php

示例8: index

 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     if (ACL::checkUserPermission('player.index') == false) {
         return Redirect::action('dashboard');
     }
     $form_open = Form::open(array('method' => 'post', 'files' => true, 'id' => 'form-player-csv', 'class' => 'smart-form', 'role' => 'form'));
     $userList = UserMember::with('user', 'group', 'points')->where('group_id', 4)->get();
     $title = Lang::get('Player List');
     $status = array('0' => array('label' => 'default', 'status' => 'Inactive'), '1' => array('label' => 'success', 'status' => 'Active'));
     $user = $userList->toArray();
     $data = array('acl' => ACL::buildACL(), 'userList' => $userList, 'title' => $title, 'status' => $status, 'form_open' => $form_open);
     return View::make('player/index', $data);
 }
开发者ID:pacificcasinohotel,项目名称:pointsystem,代码行数:18,代码来源:PlayerController.php

示例9: function

|
*/
Route::filter('auth', function () {
    if (Auth::guest()) {
        Session::put('loginRedirect', Request::url());
        $errorMsg = 'Please login using your credentials';
        return Redirect::action('login.index')->with('error', $errorMsg);
    }
});
Route::filter('auth.basic', function () {
    return Auth::basic();
});
Route::filter('auth.permission', function () {
    $routeName = Route::currentRouteName();
    if (Auth::check()) {
        $buildACL = ACL::buildACL();
        if (!array_key_exists($routeName, $buildACL['access'])) {
            return Redirect::action('denied');
        }
    } else {
        $errorMsg = 'Please login using your credentials';
        return Redirect::action('login.index')->with('error', $errorMsg);
    }
});
Route::filter('auth.session', function () {
    if (Auth::check()) {
        $user = User::find(Auth::user()->id);
        $sessionToken = Session::get('_token');
        if ($user->session_token != $sessionToken) {
            Auth::logout();
            Session::flush();
开发者ID:pacificcasinohotel,项目名称:pointsystem,代码行数:31,代码来源:filters.php


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