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


PHP Sentry::findAllUsers方法代码示例

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


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

示例1: index

 /**
  * Display a listing of users
  *
  * @return Response
  */
 public function index()
 {
     if (!Sentry::getUser()) {
         return Redirect::route('sessions.create');
     }
     $users = Sentry::findAllUsers();
     return View::make('users.index', compact('users'));
 }
开发者ID:dynamicsystems,项目名称:TechTracker,代码行数:13,代码来源:UsersController.php

示例2: getUsuarios

 public function getUsuarios()
 {
     $mensaje = Input::get('mensaje', '');
     $this->_titulo = 'Usuarios - ';
     $this->_menu = 'usuarios';
     $users = Sentry::findAllUsers();
     return View::make('admin.usuario.listar')->with('titulo', $this->_titulo)->with('menu', $this->_menu)->with('usuarios', $users)->with('mensaje', $mensaje);
 }
开发者ID:appsmambo,项目名称:base-aerea,代码行数:8,代码来源:AdminController.php

示例3: getIndex

 /**
  * Admin.user.view
  */
 public function getIndex()
 {
     // Set permission
     Auth::requirePermissions('admin.user.view');
     // Get all users
     $users = \Sentry::findAllUsers();
     // Get all groups
     $groups = \Sentry::findAllGroups();
     // Get error
     $error = Flash::get();
     $view = \View::make('ui.users.list')->with('title', 'User management | The Datatank')->with('users', $users)->with('groups', $groups)->with('error', $error);
     return \Response::make($view);
 }
开发者ID:jalbertbowden,项目名称:core,代码行数:16,代码来源:UserController.php

示例4: getIndex

 /**
  * Admin.group.view
  */
 public function getIndex()
 {
     // Set permission
     Auth::requirePermissions('admin.group.view');
     // Get all users
     $users = \Sentry::findAllUsers();
     // Get all groups
     $groups = \Sentry::findAllGroups();
     // Get all permissions
     $permission_groups = \Config::get('permissions');
     $input_permission_groups = \Config::get('tdt/input::permissions');
     if (!empty($input_permission_groups)) {
         $permission_groups = array_merge($permission_groups, $input_permission_groups);
     }
     // Get error
     $error = Flash::get();
     return \View::make('ui.groups.list')->with('title', 'Group management | The Datatank')->with('users', $users)->with('groups', $groups)->with('permission_groups', $permission_groups)->with('error', $error);
     return \Response::make($view);
 }
开发者ID:jalbertbowden,项目名称:core,代码行数:22,代码来源:GroupController.php

示例5: export

 public function export($identifier = null)
 {
     // Request all the users
     $sentry_data = \Sentry::findAllUsers();
     // Push them in an array
     $users = array();
     foreach ($sentry_data as $u) {
         // Get user's groups
         $sentry_groups = $u->getGroups();
         // Include password hash
         $password = $u->password;
         // Transform to array
         $u = $u->toArray();
         // Add password hash
         $u['password'] = $password;
         // Add group names
         $u['groups'] = array();
         foreach ($sentry_groups as $g) {
             array_push($u['groups'], $g->name);
         }
         array_push($users, $u);
     }
     return $users;
 }
开发者ID:jalbertbowden,项目名称:core,代码行数:24,代码来源:Users.php

示例6: show

 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function show($id)
 {
     //GET
     if ($id == "groups") {
         $this->layout->title = APPNAME;
         $groups = Sentry::findAllGroups();
         $this->layout->content = View::make('main.admin.groups')->with('groups', $groups);
     } elseif ($id == "users") {
         $this->layout->title = APPNAME;
         $users = Sentry::findAllUsers();
         $this->layout->content = View::make('main.admin.users')->with('users', $users);
     }
 }
开发者ID:g0ddish,项目名称:ResearchMonster,代码行数:19,代码来源:AdminController.php

示例7: index

 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     //
     $data = array('field' => array('email', 'first_name', 'last_name', 'last_login'), 'values' => Sentry::findAllUsers());
     return Response::json($data);
 }
开发者ID:shinichi81,项目名称:angular-simpeg,代码行数:11,代码来源:UsersController.php

示例8: findAllUsers

 public function findAllUsers()
 {
     return Sentry::findAllUsers();
 }
开发者ID:doowebdev,项目名称:core,代码行数:4,代码来源:SentryRepository.php

示例9: showUsers

 public function showUsers()
 {
     $users = \Sentry::findAllUsers();
     return \View::make('admin::users.users_list', compact('users'));
 }
开发者ID:OlesKashchenko,项目名称:Jarboe,代码行数:5,代码来源:TBUsersController.php

示例10: getUsers

 /**
  * Displays all users
  *
  * @return response
  **/
 public function getUsers()
 {
     $users = Sentry::findAllUsers();
     return View::make('account.users', compact('users'));
 }
开发者ID:joelmwas,项目名称:bimareport,代码行数:10,代码来源:AccountController.php

示例11: getUsers

 /**
  * @brief gets all users
  *
  * @return Mixed
  */
 public function getUsers()
 {
     $users = \Sentry::findAllUsers();
     foreach ($users as $user) {
         $throttle = \Sentry::findThrottlerByUserId($user->id);
         $user['suspended'] = $throttle->isSuspended();
         $user['banned'] = $throttle->isBanned();
         $user['activated'] = $user->isActivated();
     }
     return $users;
 }
开发者ID:arikazukitomaharjan,项目名称:OfficeSystem,代码行数:16,代码来源:UserController.php

示例12: index

 public function index()
 {
     $this->layout->title = 'Usuarios';
     $this->layout->content = View::make('administrator.users.list')->with('users', Sentry::findAllUsers());
 }
开发者ID:eldalo,项目名称:jarvix,代码行数:5,代码来源:UsersController.php

示例13: index

 public function index()
 {
     return View::make('admin.users.index')->with('users', Sentry::findAllUsers());
 }
开发者ID:kettanyam,项目名称:20141001done,代码行数:4,代码来源:UsersController.php


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