本文整理汇总了PHP中Authenticate::getFullName方法的典型用法代码示例。如果您正苦于以下问题:PHP Authenticate::getFullName方法的具体用法?PHP Authenticate::getFullName怎么用?PHP Authenticate::getFullName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Authenticate
的用法示例。
在下文中一共展示了Authenticate::getFullName方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: addToDatabase
function addToDatabase($rname, $rsize, $rtype, $rname_usr, $rtype_usr, $rdesc, $extension, $rprio)
{
$auth = new Authenticate();
$con = new Connection();
$link = $con->getConnection();
$query = "INSERT INTO `resources`(`ID`, `name`,`rNameUsr`,`rsize`, `rtype`, `format`, `doc_by`,`user_r_type`,`rDescription`,`rprio`, `when`, `approved`) VALUES (NULL,?,?,?,?,?,?,?,?,?,?,?)";
//$query = "INSERT INTO `categories`(`cat_id`,`cat_name`,`cat_description`,`cat_by`) VALUES (NULL,?,?,?)";
$stmt = $link->prepare($query);
$stmt->execute(array($rname, $rname_usr, $rsize, $rtype, $extension, $auth->getFullName($_SESSION['user_id']), $rtype_usr, $rdesc, $rprio, date("Y-m-d H:i:m", time()), 0));
$stmt = null;
return TRUE;
}
示例2: rewardUser
function rewardUser($user_id, $totalScore, $count)
{
$auth = new Authenticate();
return $reply = '<div id="evaluationDiv">' . '<h3>User Reward!</h3>' . '<p id="headLabel">Name:' . $auth->getFullName($user_id) . '</p>' . '<p id="qtag">Total Question:' . $count . '</p>' . '<p id="qtag">Total Score:' . $totalScore . '</p>' . '<p id="qtag">Percentage:' . $totalScore / $count * 100 . '%</p>' . '<p><label id="mqs">Total Time Expired or Count Exceede</label></p>' . '</div>';
}
示例3: isset
$smarty->display("index.tpl");
} else {
go_homeforlogin();
$smarty->display("index.tpl");
}
} else {
go_homeforlogin();
$smarty->display("index.tpl");
}
} else {
//user is loged in and making request
$msg = isset($_GET['loginerrorfeed']) ? $_GET["loginerrorfeed"] : "";
$smarty->assign("message", $msg);
$smarty->assign('user_id', $id);
$smarty->assign('token', $token);
$smarty->assign('user', $auth->getFullName($id));
$smarty->assign('profile', $auth->getProfile($id));
if (isset($_GET["view"])) {
$view = htmlspecialchars($_GET["view"]);
$rtype = isset($_GET['rtype']) ? $_GET["rtype"] : "";
if ($view == "homeView") {
go_homeforlogedin();
} else {
if ($view == "resourceView") {
if ($rtype == "documents") {
$smarty->assign('documents', $rMan->getAllDocumentResources());
$smarty->assign('mainContent', $smarty->fetch("documentResource.tpl"));
} else {
if ($rtype == "images") {
$smarty->assign('images', $rMan->getAllImageResources());
$smarty->assign('mainContent', $smarty->fetch("imageResources.tpl"));