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


PHP Authenticate::getFullName方法代碼示例

本文整理匯總了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;
}
開發者ID:jerryhanks,項目名稱:E-Leraning-System,代碼行數:12,代碼來源:ResourceProcessor.php

示例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>';
 }
開發者ID:jerryhanks,項目名稱:E-Leraning-System,代碼行數:5,代碼來源:Evaluation.php

示例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"));
開發者ID:jerryhanks,項目名稱:E-Leraning-System,代碼行數:31,代碼來源:index.php


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