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


PHP base::get_legacy_logdata方法代碼示例

本文整理匯總了PHP中base::get_legacy_logdata方法的典型用法代碼示例。如果您正苦於以下問題:PHP base::get_legacy_logdata方法的具體用法?PHP base::get_legacy_logdata怎麽用?PHP base::get_legacy_logdata使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在base的用法示例。


在下文中一共展示了base::get_legacy_logdata方法的14個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: get_legacy_logdata

 /**
  * Return legacy data for add_to_log().
  *
  * @return array
  */
 protected function get_legacy_logdata()
 {
     $user = $this->get_record_snapshot('user', $this->relateduserid);
     $marker = $this->get_record_snapshot('user', $this->other['markerid']);
     $a = array('id' => $user->id, 'fullname' => fullname($user), 'marker' => fullname($marker));
     $logmessage = get_string('setmarkerallocationforlog', 'assign', $a);
     $this->set_legacy_logdata('set marking allocation', $logmessage);
     return parent::get_legacy_logdata();
 }
開發者ID:janaece,項目名稱:globalclassroom4_clean,代碼行數:14,代碼來源:marker_updated.php

示例2: get_legacy_logdata

 /**
  * Return legacy data for add_to_log().
  *
  * @return array
  */
 protected function get_legacy_logdata()
 {
     $logmessage = get_string('viewbatchmarkingallocation', 'assign');
     $this->set_legacy_logdata('view batch set marker allocation', $logmessage);
     return parent::get_legacy_logdata();
 }
開發者ID:evltuma,項目名稱:moodle,代碼行數:11,代碼來源:batch_set_marker_allocation_viewed.php

示例3: get_legacy_logdata

 /**
  * Return legacy data for add_to_log().
  *
  * @return array
  */
 protected function get_legacy_logdata()
 {
     $this->set_legacy_logdata('download all submissions', get_string('downloadall', 'assign'));
     return parent::get_legacy_logdata();
 }
開發者ID:evltuma,項目名稱:moodle,代碼行數:10,代碼來源:all_submissions_downloaded.php

示例4: get_legacy_logdata

 /**
  * Return legacy data for add_to_log().
  *
  * @return array
  */
 protected function get_legacy_logdata()
 {
     if ($this->relateduserid == $this->userid) {
         $title = get_string('editsubmission', 'assign');
     } else {
         $user = $this->get_record_snapshot('user', $this->relateduserid);
         $title = get_string('editsubmissionother', 'assign', fullname($user));
     }
     $this->set_legacy_logdata('view submit assignment form', $title);
     return parent::get_legacy_logdata();
 }
開發者ID:sumitnegi933,項目名稱:Moodle_lms_New,代碼行數:16,代碼來源:submission_form_viewed.php

示例5: get_legacy_logdata

 /**
  * Return legacy data for add_to_log().
  *
  * @return array
  */
 protected function get_legacy_logdata()
 {
     $submission = $this->get_record_snapshot('assign_submission', $this->objectid);
     $user = $this->get_record_snapshot('user', $submission->userid);
     $logmessage = get_string('reverttodraftforstudent', 'assign', array('id' => $user->id, 'fullname' => fullname($user)));
     $this->set_legacy_logdata('revert submission to draft', $logmessage);
     return parent::get_legacy_logdata();
 }
開發者ID:evltuma,項目名稱:moodle,代碼行數:13,代碼來源:submission_status_updated.php

示例6: get_legacy_logdata

 /**
  * Return legacy data for add_to_log().
  *
  * @return array
  */
 protected function get_legacy_logdata()
 {
     $logmessage = get_string('viewsubmissionforuser', 'assign', $this->relateduserid);
     $this->set_legacy_logdata('view submission', $logmessage);
     return parent::get_legacy_logdata();
 }
開發者ID:sumitnegi933,項目名稱:Moodle_lms_New,代碼行數:11,代碼來源:submission_viewed.php

示例7: get_legacy_logdata

 /**
  * Return legacy data for add_to_log().
  *
  * @return array
  */
 protected function get_legacy_logdata()
 {
     $submission = $this->get_record_snapshot('sepl_submission', $this->objectid);
     $this->set_legacy_logdata('submit for grading', $this->sepl->format_submission_for_log($submission));
     return parent::get_legacy_logdata();
 }
開發者ID:krzpassrl,項目名稱:SRL_Moodle_Baseline,代碼行數:11,代碼來源:assessable_submitted.php

示例8: get_legacy_logdata

 /**
  * Return legacy data for add_to_log().
  *
  * @return array
  */
 protected function get_legacy_logdata()
 {
     $user = $this->get_record_snapshot('user', $this->relateduserid);
     $a = array('id' => $user->id, 'fullname' => fullname($user), 'state' => $this->other['newstate']);
     $logmessage = get_string('setmarkingworkflowstateforlog', 'setask', $a);
     $this->set_legacy_logdata('set marking workflow state', $logmessage);
     return parent::get_legacy_logdata();
 }
開發者ID:krzpassrl,項目名稱:SRL_Moodle_db,代碼行數:13,代碼來源:workflow_state_updated.php

示例9: get_legacy_logdata

 /**
  * Return legacy data for add_to_log().
  *
  * @return array
  */
 protected function get_legacy_logdata()
 {
     $this->set_legacy_logdata('grant extension', $this->relateduserid);
     return parent::get_legacy_logdata();
 }
開發者ID:janaece,項目名稱:globalclassroom4_clean,代碼行數:10,代碼來源:extension_granted.php

示例10: get_legacy_logdata

 /**
  * Return legacy data for add_to_log().
  *
  * @return array
  */
 protected function get_legacy_logdata()
 {
     $user = $this->get_record_snapshot('user', $this->relateduserid);
     $msg = get_string('viewgradingformforstudent', 'assign', array('id' => $user->id, 'fullname' => fullname($user)));
     $this->set_legacy_logdata('view grading form', $msg);
     return parent::get_legacy_logdata();
 }
開發者ID:janaece,項目名稱:globalclassroom4_clean,代碼行數:12,代碼來源:grading_form_viewed.php

示例11: get_legacy_logdata

 /**
  * Return legacy data for add_to_log().
  *
  * @return array
  */
 protected function get_legacy_logdata()
 {
     $grade = $this->get_record_snapshot('assign_grades', $this->objectid);
     $this->set_legacy_logdata('grade submission', $this->assign->format_grade_for_log($grade));
     return parent::get_legacy_logdata();
 }
開發者ID:sumitnegi933,項目名稱:Moodle_lms_New,代碼行數:11,代碼來源:submission_graded.php

示例12: get_legacy_logdata

 /**
  * Return legacy data for add_to_log().
  *
  * @return array
  */
 protected function get_legacy_logdata()
 {
     $submission = $this->get_record_snapshot('assign_submission', $this->objectid);
     $this->set_legacy_logdata('submissioncopied', $this->assign->format_submission_for_log($submission));
     return parent::get_legacy_logdata();
 }
開發者ID:sumitnegi933,項目名稱:Moodle_lms_New,代碼行數:11,代碼來源:submission_duplicated.php

示例13: get_legacy_logdata

 /**
  * Return legacy data for add_to_log().
  *
  * @return array
  */
 protected function get_legacy_logdata()
 {
     $user = $this->get_record_snapshot('user', $this->relateduserid);
     $logmessage = get_string('locksubmissionforstudent', 'assign', array('id' => $user->id, 'fullname' => fullname($user)));
     $this->set_legacy_logdata('lock submission', $logmessage);
     return parent::get_legacy_logdata();
 }
開發者ID:janaece,項目名稱:globalclassroom4_clean,代碼行數:12,代碼來源:submission_locked.php

示例14: get_legacy_logdata

 /**
  * Return legacy data for add_to_log().
  *
  * @return array
  */
 protected function get_legacy_logdata()
 {
     global $USER;
     $logmessage = get_string('submissionstatementacceptedlog', 'mod_assign', fullname($USER));
     // Nasty hack.
     $this->set_legacy_logdata('submission statement accepted', $logmessage);
     return parent::get_legacy_logdata();
 }
開發者ID:pzhu2004,項目名稱:moodle,代碼行數:13,代碼來源:statement_accepted.php


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