本文整理汇总了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'));
}
示例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);
}
示例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);
}
示例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);
}
示例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;
}
示例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);
}
}
示例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);
}
示例8: findAllUsers
public function findAllUsers()
{
return Sentry::findAllUsers();
}
示例9: showUsers
public function showUsers()
{
$users = \Sentry::findAllUsers();
return \View::make('admin::users.users_list', compact('users'));
}
示例10: getUsers
/**
* Displays all users
*
* @return response
**/
public function getUsers()
{
$users = Sentry::findAllUsers();
return View::make('account.users', compact('users'));
}
示例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;
}
示例12: index
public function index()
{
$this->layout->title = 'Usuarios';
$this->layout->content = View::make('administrator.users.list')->with('users', Sentry::findAllUsers());
}
示例13: index
public function index()
{
return View::make('admin.users.index')->with('users', Sentry::findAllUsers());
}