當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Usuarios::select方法代碼示例

本文整理匯總了PHP中Usuarios::select方法的典型用法代碼示例。如果您正苦於以下問題:PHP Usuarios::select方法的具體用法?PHP Usuarios::select怎麽用?PHP Usuarios::select使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Usuarios的用法示例。


在下文中一共展示了Usuarios::select方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: postEntrar

 public function postEntrar()
 {
     $dadosAcesso = Input::all();
     $validador = Validator::make($dadosAcesso, $this->regra_login);
     if ($validador->fails()) {
         return Redirect::to('login')->withErrors($validador)->withInput();
     }
     $usuarios = Usuarios::select('email')->where('email', $dadosAcesso['login_acesso'])->where('senha', $dadosAcesso['senha_acesso'])->get();
     Route::get('login', array('uses' => 'HomeController@showWelcome'));
     //return View::make('HomeController@showWelcome');
     //return View::make('login.login', compact('usuarios'));
 }
開發者ID:arrobarafael,項目名稱:repositorio1,代碼行數:12,代碼來源:LoginController.php

示例2:

     $result = $users->update($id);
     break;
 case "delete":
     $am->access(PERMS_ADMIN);
     $result = $users->delete($id);
     break;
 case "password":
     $result = $am->setPassword($id, $pass, $sk);
     break;
     // access checks are done inside method
 // access checks are done inside method
 case "selectbyid":
     $result = $users->selectByID($id);
     break;
 case "select":
     $result = $users->select();
     break;
     // list with order, index, count and where
 // list with order, index, count and where
 case "enumerate":
     $result = $users->enumerate();
     break;
     // list with where
 // list with where
 case "login":
     $result = $am->login($user, $pass, $sid);
     break;
 case "pwcheck":
     $result = $am->checkPassword($user, $pass);
     break;
     // just check pass, dont create session
開發者ID:nedy13,項目名稱:AgilityContest,代碼行數:31,代碼來源:userFunctions.php

示例3: Usuarios

<?php

require_once 'variaveis.php';
require_once 'core/Usuarios.php';
$user = new Usuarios();
if (isset($_GET['del'])) {
    $user->setId_usuario($_GET['del']);
    $user->delete();
}
if (isset($_GET['edit'])) {
    $user->setUsuario($_GET['edit']);
    $user->update();
}
if (isset($_POST['usuario']) and isset($_POST['nome']) and isset($_POST['senha']) and isset($_POST['tipo']) and !isset($_GET['editar'])) {
    $user->setNome($_POST['nome']);
    $user->setUsuario($_POST['usuario']);
    $user->setSenha(md5($_POST['senha']));
    $user->setId_tipo($_POST['tipo']);
    $user->insert();
}
$smarty->assign("lista", $user->select());
$smarty->assign("nome", "Usuários");
$smarty->display("usuarios.tpl");
開發者ID:AmandaNatallie,項目名稱:RequisitosPA,代碼行數:23,代碼來源:usuarios.php


注:本文中的Usuarios::select方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。