当前位置: 首页>>代码示例>>PHP>>正文


PHP student::getName方法代码示例

本文整理汇总了PHP中student::getName方法的典型用法代码示例。如果您正苦于以下问题:PHP student::getName方法的具体用法?PHP student::getName怎么用?PHP student::getName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在student的用法示例。


在下文中一共展示了student::getName方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: changepassword

 protected function changepassword()
 {
     global $objPDO;
     global $user;
     $student = new student($objPDO, $user->getuserId());
     $headMenu = array("username" => $student->getName());
     $role = $student->getacctType();
     include_once $_SERVER['DOCUMENT_ROOT'] . '/cloud/view/change_pass.php';
 }
开发者ID:srinivasans,项目名称:educloud,代码行数:9,代码来源:profileController.php

示例2: create

 protected function create()
 {
     global $objPDO;
     global $user;
     $student = new student($objPDO, $user->getuserId());
     $headMenu = array("username" => $student->getName());
     if ($user->checkAdmin()) {
         include $_SERVER['DOCUMENT_ROOT'] . '/cloud/view/create_section.php';
     }
 }
开发者ID:srinivasans,项目名称:educloud,代码行数:10,代码来源:sectionController.php

示例3: addteacher

 protected function addteacher()
 {
     global $objPDO;
     global $user;
     $student = new student($objPDO, $user->getuserId());
     $headMenu = array("username" => $student->getName());
     if ($user->checkAdmin()) {
         include $_SERVER['DOCUMENT_ROOT'] . '/cloud/view/subject_teacher_relations.php';
     }
 }
开发者ID:srinivasans,项目名称:educloud,代码行数:10,代码来源:subjectclassController.php

示例4: studentsection

 protected function studentsection()
 {
     global $objPDO;
     global $user;
     $student = new student($objPDO, $user->getuserId());
     $headMenu = array("username" => $student->getName());
     if ($user->checkAdmin()) {
         include $_SERVER['DOCUMENT_ROOT'] . '/cloud/view/section_student_relation_view.php';
     } else {
         if ($student->checkTeacher()) {
         } else {
         }
     }
 }
开发者ID:srinivasans,项目名称:educloud,代码行数:14,代码来源:miscellaneousController.php

示例5: addparent

 protected function addparent()
 {
     global $user;
     global $objPDO;
     $student = new student($objPDO, $user->getuserId());
     $headMenu = array("username" => $student->getName());
     if ($user->checkAdmin() == true && isset($_GET['uid'])) {
         global $objPDO;
         $studentProfile = new StudentProfile($objPDO);
         $studentProfile->loadByUserId($_GET['uid']);
         include $_SERVER['DOCUMENT_ROOT'] . '/cloud/view/addparent.php';
     } else {
         header('Location:http://localhost/cloud');
     }
 }
开发者ID:srinivasans,项目名称:educloud,代码行数:15,代码来源:parentController.php

示例6: index

 protected function index()
 {
     global $objPDO;
     global $user;
     $student = new student($objPDO, $user->getuserId());
     $headMenu = array("username" => $student->getName());
     if ($user->checkAdmin()) {
         include $_SERVER['DOCUMENT_ROOT'] . '/cloud/view/admin.php';
     } else {
         if ($student->checkTeacher()) {
             include $_SERVER['DOCUMENT_ROOT'] . '/cloud/view/employee.php';
         } else {
             if ($student->checkStudent()) {
                 include $_SERVER['DOCUMENT_ROOT'] . '/cloud/view/student.php';
             }
         }
     }
 }
开发者ID:srinivasans,项目名称:educloud,代码行数:18,代码来源:homeController.php

示例7: index

 protected function index()
 {
     global $user;
     global $objPDO;
     $student = new student($objPDO, $user->getuserId());
     $headMenu = array("username" => $student->getName());
     if ($user->checkAdmin() == true) {
         $role = $student->getacctType();
         include $_SERVER['DOCUMENT_ROOT'] . '/cloud/view/temp_page.php';
     } else {
         if ($student->checkTeacher() == true) {
             $role = $student->getacctType();
             include $_SERVER['DOCUMENT_ROOT'] . '/cloud/view/temp_page.php';
         } else {
             header('Location:http://localhost/cloud');
         }
     }
 }
开发者ID:srinivasans,项目名称:educloud,代码行数:18,代码来源:leaveController.php

示例8: report

 protected function report()
 {
     global $user;
     global $objPDO;
     $student = new student($objPDO, $user->getuserId());
     $headMenu = array("username" => $student->getName());
     if ($user->checkAdmin() == true || $student->checkTeacher() || $student->checkStudent()) {
         $role = $student->getacctType();
         $sid = NULL;
         if ($student->checkStudent()) {
             include_once $_SERVER['DOCUMENT_ROOT'] . '/cloud/model/student_profile_class.php';
             $sid = $student->getID();
         } else {
             if (isset($_GET['uid'])) {
                 $sid = $_GET['uid'];
             }
         }
         if ($sid) {
             include_once $_SERVER['DOCUMENT_ROOT'] . '/cloud/model/student_profile_class.php';
             include_once $_SERVER['DOCUMENT_ROOT'] . '/cloud/model/attendence_class.php';
             include_once $_SERVER['DOCUMENT_ROOT'] . '/cloud/model/student_section_class.php';
             include_once $_SERVER['DOCUMENT_ROOT'] . '/cloud/model/section_class.php';
             $stu = new StudentProfile($objPDO);
             $stu->loadByUserId($sid);
             $roll_number = $stu->getRollNo();
             $name = $stu->getName();
             $section = new StudentSection($objPDO);
             $section_id = $section->getByStudentId($sid);
             $sec = new Section($objPDO, $section_id);
             $section_name = $sec->getCode();
             $att = new Attendence($objPDO);
             $total_days = $att->getBySectionId($section_id);
             $attendance = $att->getByStudentId($stu->getID());
             $present = 0;
             $absent = 0;
             foreach ($attendance as $key => $value) {
                 if ($value['presence'] == 1) {
                     $present++;
                 } else {
                     if ($value['presence'] == 0) {
                         $absent++;
                     }
                 }
             }
             include $_SERVER['DOCUMENT_ROOT'] . '/cloud/view/report_view.php';
         } else {
             echo 'error';
         }
     } else {
         header('Location:http://localhost/cloud');
     }
 }
开发者ID:srinivasans,项目名称:educloud,代码行数:52,代码来源:attendanceController.php

示例9: create

 protected function create()
 {
     global $user;
     global $objPDO;
     $student = new student($objPDO, $user->getuserId());
     $headMenu = array("username" => $student->getName());
     if ($user->checkAdmin() == true) {
         include $_SERVER['DOCUMENT_ROOT'] . '/cloud/view/examination_create.php';
     } else {
         header('Location:http://localhost/cloud');
     }
 }
开发者ID:srinivasans,项目名称:educloud,代码行数:12,代码来源:examinationController.php

示例10: search

 protected function search()
 {
     global $user;
     global $objPDO;
     $student = new student($objPDO, $user->getuserId());
     $headMenu = array("username" => $student->getName());
     if ($user->checkAdmin() == true) {
         require_once $_SERVER['DOCUMENT_ROOT'] . '/cloud/model/teacher_class.php';
         $teacherProfile = new Teacher($objPDO);
         include $_SERVER['DOCUMENT_ROOT'] . '/cloud/view/search_teacher.php';
     } else {
         header('Location:http://localhost/cloud');
     }
 }
开发者ID:srinivasans,项目名称:educloud,代码行数:14,代码来源:teacherController.php

示例11: newtime

 protected function newtime()
 {
     $class = $_GET['uid'];
     global $user;
     global $objPDO;
     $student = new student($objPDO, $user->getuserId());
     $headMenu = array("username" => $student->getName());
     if ($user->checkAdmin() == true) {
         include $_SERVER['DOCUMENT_ROOT'] . '/cloud/model/timetable_settings_class.php';
         $sett = new TimetableSettings($objPDO);
         $slots = $sett->getAllSlots();
         if (!isset($slots)) {
             $num_slots = 0;
         } else {
             $num_slots = count($slots);
         }
         include_once $_SERVER['DOCUMENT_ROOT'] . '/cloud/model/subject_class.php';
         include_once $_SERVER['DOCUMENT_ROOT'] . '/cloud/model/section_teacher_subject_class.php';
         include_once $_SERVER['DOCUMENT_ROOT'] . '/cloud/model/timetable_class.php';
         $rel = new SectionTeacherSubjectRelations($objPDO);
         $teasubrel = $rel->getByClass($class);
         $subjects = array();
         for ($i = 0; $i < count($teasubrel); $i++) {
             $subjects[$teasubrel[$i]['subject_id']] = Subject::getSubjectName($teasubrel[$i]['subject_id']);
         }
         $tt = new Timetable($objPDO);
         $timetable = $tt->getBySection($class);
         include $_SERVER['DOCUMENT_ROOT'] . '/cloud/view/section_timetable.php';
     } else {
         header('Location:http://localhost/cloud');
     }
 }
开发者ID:srinivasans,项目名称:educloud,代码行数:32,代码来源:timetableController.php

示例12: setName

#����
class student
{
    private $name;
    public function setName($name)
    {
        $this->name = $name;
    }
    public function getName()
    {
        return $this->name;
    }
}
$zgx = new student();
$zgx->setName("zgx");
printf("%s", $zgx->getName());
#ǿ��ת��
$t1 = 10;
$t2 = "5";
$result = $t1 + $t2;
echo " {$result}  <br/>";
$t3 = "1a";
$result += $t3;
echo " {$result}  <br/>";
#����
$t4 =& $t3;
printf("\$t3 :%d<br/>", $t3);
$t4 = "change";
printf("\$t3 :%d<br/>", $t3);
function ref_test(&$param)
{
开发者ID:ww5125417,项目名称:weixin,代码行数:31,代码来源:phpinfo.php

示例13: search

 protected function search()
 {
     global $user;
     global $objPDO;
     $student = new student($objPDO, $user->getuserId());
     $headMenu = array("username" => $student->getName());
     if ($user->checkAdmin() == true || $student->checkTeacher() == true) {
         if ($user->checkAdmin()) {
             $role = 'admin';
         } else {
             $role = 'teacher';
         }
         require_once $_SERVER['DOCUMENT_ROOT'] . '/cloud/model/student_profile_class.php';
         require_once $_SERVER['DOCUMENT_ROOT'] . '/cloud/model/parent_class.php';
         $studentProfile = new StudentProfile($objPDO);
         $parent = new StudentParent($objPDO);
         $spec = NULL;
         if (isset($_GET['uid'])) {
             $spec = $_GET['uid'];
         }
         include $_SERVER['DOCUMENT_ROOT'] . '/cloud/view/search_student.php';
     } else {
         header('Location:http://localhost/cloud');
     }
 }
开发者ID:srinivasans,项目名称:educloud,代码行数:25,代码来源:studentprofileController.php


注:本文中的student::getName方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。