本文整理汇总了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();
}