本文整理汇总了PHP中hierarchy::count_trasncripts_approve_from_registrar方法的典型用法代码示例。如果您正苦于以下问题:PHP hierarchy::count_trasncripts_approve_from_registrar方法的具体用法?PHP hierarchy::count_trasncripts_approve_from_registrar怎么用?PHP hierarchy::count_trasncripts_approve_from_registrar使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类hierarchy
的用法示例。
在下文中一共展示了hierarchy::count_trasncripts_approve_from_registrar方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: render_cocustommenu
//.........这里部分代码省略.........
$content .="<li><a href=$CFG->wwwroot/local/request/course_exem.php>Course Exemption</a></li>";
$content .="</ul></li>";
//-----------------------------end of requests links-------------------------------------------------------------------------------------------
$content .="<li><a href=$CFG->wwwroot/local/helpmanuals/student/index.html target='_blank'>Help Manual</a></li>";
}
}
// for mentor starts-------------------------------------------
if (has_capability('local/classes:approvemystudentclasses', $systemcontext) && !is_siteadmin()) {
$content .="<li><a href=$CFG->wwwroot/local/mentor>My Students</a></li>";
$content .="<li><a href=$CFG->wwwroot/local/helpmanuals/mentor/index.html target='_blank'>Help Manual</a></li>";
}
// mentor ends
if (isloggedin() & !isguestuser()) {
$msgnotification = message_count_unread_messages($USER);
$heirarchy = new hierarchy();
$request = new requests();
$applicationnotice = $heirarchy->count_admissions_from_applicants($USER->id);
$requestnotice = $request->all_student_requests_count($USER->id);
$courserequestnotice = $heirarchy->count_course_requests_from_students($USER->id);
$transcriptnotice = $heirarchy->count_transcript_req_from_student($USER->id);
$courseexemptionnotice = $heirarchy->count_coureexe_req_from_student($USER->id);
$profilechangenotice = $heirarchy->count_profilechange_req_from_student($USER->id);
$idcardnotice = $heirarchy->count_idcard_req_from_student($USER->id);
$newappnotice = $heirarchy->count_new_admission_req_from_student($USER->id);
$transferappnotice = $heirarchy->count_transfer_admission_req_from_student($USER->id);
$totalrequest = $courserequestnotice + $requestnotice;
$content .="<li><a href=$CFG->wwwroot/message/ title='Messages' id='messages'>
<sup id='msgnotice'>$msgnotification</sup></a></li>";
$context = context_user::instance($USER->id);
if (has_capability('local/classes:enrollclass', $context) && !is_siteadmin()) {
$allapprovals = $request->all_approved_requests($USER->id);
$transcriptapprovals = $heirarchy->count_trasncripts_approve_from_registrar($USER->id);
$courseexemptionapproval = $heirarchy->count_courseexe_approve_from_registrar($USER->id);
$idcardapproval = $heirarchy->count_idcard_approve_from_registrar($USER->id);
$profilechangeapproval = $heirarchy->count_profilechange_approve_from_registrar($USER->id);
$content .="<li class='dropdown'>
<a href='#' class='dropdown-toggle open' data-toggle='dropdown' id='allrequests' title='Request Approvals'>
<sup id='arequests'>$allapprovals</sup></a>
<ul class='dropdown-menu'>";
$content .="<li><a href=$CFG->wwwroot/local/request/request_transcript.php>Transcripts($transcriptapprovals)</a></li>";
$content .="<li><a href=$CFG->wwwroot/local/request/course_exem.php>Coures Exemptions($courseexemptionapproval)</a></li>";
$content .="<li><a href=$CFG->wwwroot/local/request/request_id.php>ID Card($idcardapproval)</a></li>";
$content .="<li><a href=$CFG->wwwroot/local/request/request_profile.php>Profile Change($profilechangeapproval)</a></li>";
$content .="</ul></li>";
}
if (has_capability('local/collegestructure:manage', $systemcontext) && !is_siteadmin($USER->id)) {
$content .="<li class='dropdown'>
<a href='#' class='dropdown-toggle' data-toggle='dropdown' id='apprequests' title='Applicant Requests'>
<sup id='requests'>$applicationnotice</sup></a>
<ul class='dropdown-menu'>";
$content .="<li><a href=$CFG->wwwroot/local/admission/viewapplicant.php>New Application($newappnotice)</a></li>";
$content .="<li><a href=$CFG->wwwroot/local/admission/transferapplicant.php>Transfer Application($transferappnotice)</a></li>";
$content .="</ul></li>";
}
if ((has_capability('local/collegestructure:manage', $systemcontext) || has_capability('local/classes:approvemystudentclasses', $systemcontext)) && !is_siteadmin($USER->id)) {
$content .="<li class='dropdown'>
<a href='#' class='dropdown-toggle' data-toggle='dropdown' id='allrequests' title='Requests'>
<sup id='arequests'>$totalrequest</sup></a>
<ul class='dropdown-menu'>";
}
if ((has_capability('local/collegestructure:manage', $systemcontext) || has_capability('local/classes:approvemystudentclasses', $systemcontext)) && !is_siteadmin($USER->id)) {
$content .="<li><a href=$CFG->wwwroot/local/courseregistration/registrar.php?current=pending>Approve Course (<b class='counts'>$courserequestnotice </b>)</a></li>";
}