本文整理匯總了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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}