示例#1
0
 function __construct()
 {
     parent::__construct();
     $this->registerTask("add", "edit");
     $this->registerTask("", "listEmails");
     $this->_model = $this->getModel("guruEmails");
     $this->registerTask("unpublish", "publish");
 }
示例#2
0
文件: guruMedia.php 项目: JozefAB/qk
 function __construct()
 {
     parent::__construct();
     $this->registerTask("add", "edit");
     $this->registerTask("", "listMedia");
     $this->_model = $this->getModel("guruMedia");
     $this->registerTask("unpublish", "publish");
     $this->registerTask('ajax_add_video', 'ajaxAddVideo');
     $this->registerTask('ajax_add_mass_video', 'ajaxAddMassVideo');
 }
示例#3
0
 function __construct()
 {
     parent::__construct();
     require_once JPATH_COMPONENT . DS . 'helpers' . DS . 'helper.php';
     $this->registerTask("", "listConfigs");
     $this->registerTask("general", "listConfigs");
     $this->registerTask("payments", "listConfigs");
     $this->registerTask("content", "listConfigs");
     $this->_model = $this->getModel("guruConfig");
 }
示例#4
0
 function __construct()
 {
     parent::__construct();
     $this->registerTask("add", "edit");
     $this->registerTask("", "edit");
     $this->registerTask("edit", "edit");
     $this->registerTask("register", "edit");
     $this->registerTask("saveCustomer", "save");
     $this->registerTask("loginform", "loginform");
     $this->_model = $this->getModel('guruCustomer');
 }
示例#5
0
 function __construct()
 {
     parent::__construct();
     $this->registerTask("", "view");
     $this->registerTask("listCourses", "listCourses");
     $this->registerTask("tree", "coursesTree");
     $this->registerTask("listing", "coursesListing");
     $this->registerTask("buy_action", "buyAction");
     $this->registerTask("enroll", "enroll");
     $this->_model = $this->getModel("guruProgram");
 }
示例#6
0
 function __construct()
 {
     parent::__construct();
     $this->registerTask("mycourses", "myCourses");
     $this->registerTask("listQuizStud", "listQuizStud");
     $this->registerTask("show_quizz_res", "show_quizz_res");
     $this->registerTask("view", "viewOrderDetails1");
     $this->registerTask("showrec", "viewOrderDetails2");
     $this->registerTask("renew", "renewtest");
     $this->registerTask("printcertificate", "printcertificate");
     $this->registerTask("sendemailcertificate", "sendemailcertificate");
     $this->_model = $this->getModel("guruOrder");
 }
示例#7
0
文件: guruLogin.php 项目: JozefAB/qk
 function view()
 {
     $returnpage = JRequest::getVar("returnpage", "");
     $Itemid = JRequest::getVar("Itemid", "0");
     if ($returnpage != "" && $returnpage == "enroll") {
         $user = JFactory::getUser();
         if ($user->id != "0") {
             $app = JFactory::getAPPlication("site");
             $course_id = JRequest::getVar("course_id", "0");
             $link = "index.php?option=com_guru&view=guruPrograms&task=enroll&cid=" . intval($course_id) . "&Itemid=" . intval($Itemid);
             $app->redirect($link);
         }
     }
     JRequest::setVar('view', 'guruLogin');
     parent::display();
 }
示例#8
0
文件: guruTasks.php 项目: JozefAB/qk
 function __construct()
 {
     parent::__construct();
     $this->registerTask("add", "edit");
     $this->registerTask("", "view");
     $this->registerTask("unpublish", "publish");
     $this->registerTask("exercise", "exerciseFile");
     $this->registerTask("saveInDb", "saveInDb");
     $this->registerTask("saveInDbQuiz", "saveInDbQuiz");
     $this->registerTask("saveInDbaseHowMany", "saveInDbaseHowMany");
     $this->registerTask("viewcertificate", "viewcertificate");
     $this->registerTask("savecertificatepdf", "savecertificatepdf");
     $this->registerTask("lessonmessage", "lessonmessage");
     $this->registerTask("deletecom", "deletecom");
     $this->registerTask("editgurucomment", "editgurucomment");
     $this->registerTask("editformgurupost", "editformgurupost");
     $this->registerTask("calculatecertificate", "calculatecertificate");
     $this->registerTask("showCertificateFr", "showCertificateFr");
     $this->registerTask("quizz_fe_submit", "get_quiz_result");
     $this->_model = $this->getModel("guruTask");
 }
示例#9
0
 function getAuthorList()
 {
     JRequest::setVar("view", "guruauthor");
     $view = $this->getView("guruauthor", "html");
     $view->setModel($this->_model, true);
     parent::display();
 }
示例#10
0
 function __construct()
 {
     parent::__construct();
     $this->registerTask("", "listQuiz");
     $this->_model = $this->getModel("guruQuiz");
 }
示例#11
0
 function view()
 {
     JRequest::setVar('view', 'guruEditplans');
     parent::display();
 }
示例#12
0
文件: guruBuy.php 项目: JozefAB/qk
 function view()
 {
     JRequest::setVar('view', 'guruBuy');
     parent::display();
 }
示例#13
0
 function __construct()
 {
     parent::__construct();
     $this->registerTask("checkout", "checkout");
 }