2018-11-01 14:21:14 +00:00
|
|
|
<?php
|
|
|
|
|
2018-11-01 16:50:10 +00:00
|
|
|
|
2018-11-01 14:21:14 +00:00
|
|
|
class UrlGenerator
|
|
|
|
{
|
|
|
|
public function getCheckUrl($cmid, $fileid)
|
|
|
|
{
|
|
|
|
return new moodle_url(sprintf(
|
|
|
|
'/plagiarism/pchkorg/page/report.php?cmid=%s&file=%s',
|
|
|
|
intval($cmid),
|
|
|
|
intval($fileid)
|
|
|
|
)
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getStatusUrl()
|
|
|
|
{
|
|
|
|
return new moodle_url('/plagiarism/pchkorg/page/status.php');
|
|
|
|
}
|
|
|
|
}
|