| Línea 597... |
Línea 597... |
| 597 |
$warnofungroupedusers,
|
597 |
$warnofungroupedusers,
|
| 598 |
$courserelativedatesmode,
|
598 |
$courserelativedatesmode,
|
| 599 |
$coursestartdate,
|
599 |
$coursestartdate,
|
| 600 |
$cangrade = true,
|
600 |
$cangrade = true,
|
| 601 |
$isvisible = true,
|
601 |
$isvisible = true,
|
| 602 |
cm_info $cm = null) {
|
602 |
?cm_info $cm = null) {
|
| 603 |
$this->participantcount = $participantcount;
|
603 |
$this->participantcount = $participantcount;
|
| 604 |
$this->submissiondraftsenabled = $submissiondraftsenabled;
|
604 |
$this->submissiondraftsenabled = $submissiondraftsenabled;
|
| 605 |
$this->submissiondraftscount = $submissiondraftscount;
|
605 |
$this->submissiondraftscount = $submissiondraftscount;
|
| 606 |
$this->submissionsenabled = $submissionsenabled;
|
606 |
$this->submissionsenabled = $submissionsenabled;
|
| 607 |
$this->submissionssubmittedcount = $submissionssubmittedcount;
|
607 |
$this->submissionssubmittedcount = $submissionssubmittedcount;
|
| Línea 620... |
Línea 620... |
| 620 |
}
|
620 |
}
|
| 621 |
}
|
621 |
}
|
| Línea 622... |
Línea 622... |
| 622 |
|
622 |
|
| 623 |
/**
|
623 |
/**
|
| - |
|
624 |
* Renderable course index summary
|
| - |
|
625 |
*
|
| - |
|
626 |
* @deprecated since Moodle 5.0 (MDL-83888).
|
| - |
|
627 |
* @todo MDL-84429 Final deprecation in Moodle 6.0.
|
| 624 |
* Renderable course index summary
|
628 |
*
|
| 625 |
* @package mod_assign
|
629 |
* @package mod_assign
|
| 626 |
* @copyright 2012 NetSpot {@link http://www.netspot.com.au}
|
630 |
* @copyright 2012 NetSpot {@link http://www.netspot.com.au}
|
| 627 |
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
631 |
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
| 628 |
*/
|
632 |
*/
|
| Línea 635... |
Línea 639... |
| 635 |
public $courseformatname = '';
|
639 |
public $courseformatname = '';
|
| Línea 636... |
Línea 640... |
| 636 |
|
640 |
|
| 637 |
/**
|
641 |
/**
|
| 638 |
* constructor
|
642 |
* constructor
|
| - |
|
643 |
*
|
| - |
|
644 |
* @deprecated since Moodle 5.0 (MDL-83888).
|
| 639 |
*
|
645 |
* @todo MDL-84429 Final deprecation in Moodle 6.0.
|
| 640 |
* @param boolean $usesections - True if this course format uses sections
|
646 |
* @param boolean $usesections - True if this course format uses sections
|
| 641 |
* @param string $courseformatname - The id of this course format
|
647 |
* @param string $courseformatname - The id of this course format
|
| - |
|
648 |
*/
|
| - |
|
649 |
#[\core\attribute\deprecated(
|
| - |
|
650 |
since: '5.0',
|
| - |
|
651 |
mdl: 'MDL-83888',
|
| - |
|
652 |
reason: 'The assign_course_index_summary class is not used anymore.',
|
| 642 |
*/
|
653 |
)]
|
| - |
|
654 |
public function __construct($usesections, $courseformatname) {
|
| 643 |
public function __construct($usesections, $courseformatname) {
|
655 |
\core\deprecation::emit_deprecation([$this, __FUNCTION__]);
|
| 644 |
$this->usesections = $usesections;
|
656 |
$this->usesections = $usesections;
|
| 645 |
$this->courseformatname = $courseformatname;
|
657 |
$this->courseformatname = $courseformatname;
|
| Línea 646... |
Línea 658... |
| 646 |
}
|
658 |
}
|
| 647 |
|
659 |
|
| 648 |
/**
|
660 |
/**
|
| - |
|
661 |
* Add a row of data to display on the course index page
|
| - |
|
662 |
*
|
| 649 |
* Add a row of data to display on the course index page
|
663 |
* @deprecated since Moodle 5.0 (MDL-83888).
|
| 650 |
*
|
664 |
* @todo MDL-84429 Final deprecation in Moodle 6.0.
|
| 651 |
* @param int $cmid - The course module id for generating a link
|
665 |
* @param int $cmid - The course module id for generating a link
|
| 652 |
* @param string $cmname - The course module name for generating a link
|
666 |
* @param string $cmname - The course module name for generating a link
|
| 653 |
* @param string $sectionname - The name of the course section (only if $usesections is true)
|
667 |
* @param string $sectionname - The name of the course section (only if $usesections is true)
|
| 654 |
* @param int $timedue - The due date for the assignment - may be 0 if no duedate
|
668 |
* @param int $timedue - The due date for the assignment - may be 0 if no duedate
|
| 655 |
* @param string $submissioninfo - A string with either the number of submitted assignments, or the
|
669 |
* @param string $submissioninfo - A string with either the number of submitted assignments, or the
|
| 656 |
* status of the current users submission depending on capabilities.
|
670 |
* status of the current users submission depending on capabilities.
|
| 657 |
* @param string $gradeinfo - The current users grade if they have been graded and it is not hidden.
|
671 |
* @param string $gradeinfo - The current users grade if they have been graded and it is not hidden.
|
| - |
|
672 |
* @param bool cangrade - Does this user have grade capability?
|
| - |
|
673 |
*/
|
| - |
|
674 |
#[\core\attribute\deprecated(
|
| - |
|
675 |
since: '5.0',
|
| - |
|
676 |
mdl: 'MDL-83888',
|
| 658 |
* @param bool cangrade - Does this user have grade capability?
|
677 |
reason: 'The assign_course_index_summary class is not used anymore.',
|
| - |
|
678 |
)]
|
| 659 |
*/
|
679 |
public function add_assign_info($cmid, $cmname, $sectionname, $timedue, $submissioninfo, $gradeinfo, $cangrade = false) {
|
| 660 |
public function add_assign_info($cmid, $cmname, $sectionname, $timedue, $submissioninfo, $gradeinfo, $cangrade = false) {
|
680 |
\core\deprecation::emit_deprecation([$this, __FUNCTION__]);
|
| 661 |
$this->assignments[] = ['cmid' => $cmid,
|
681 |
$this->assignments[] = ['cmid' => $cmid,
|
| 662 |
'cmname' => $cmname,
|
682 |
'cmname' => $cmname,
|
| 663 |
'sectionname' => $sectionname,
|
683 |
'sectionname' => $sectionname,
|
| Línea 679... |
Línea 699... |
| 679 |
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
699 |
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
| 680 |
*/
|
700 |
*/
|
| 681 |
class assign_files implements renderable {
|
701 |
class assign_files implements renderable {
|
| 682 |
/** @var context $context */
|
702 |
/** @var context $context */
|
| 683 |
public $context;
|
703 |
public $context;
|
| 684 |
/** @var string $context */
|
704 |
/** @var array $dir as returned by {@see file_storage::get_area_tree()}. */
|
| 685 |
public $dir;
|
705 |
public $dir;
|
| 686 |
/** @var MoodleQuickForm $portfolioform */
|
706 |
/** @var MoodleQuickForm $portfolioform */
|
| 687 |
public $portfolioform;
|
707 |
public $portfolioform;
|
| 688 |
/** @var stdClass $cm course module */
|
708 |
/** @var stdClass $cm course module */
|
| 689 |
public $cm;
|
709 |
public $cm;
|
| Línea 777... |
Línea 797... |
| 777 |
$file->get_filepath(),
|
797 |
$file->get_filepath(),
|
| 778 |
$file->get_filename(),
|
798 |
$file->get_filename(),
|
| 779 |
true,
|
799 |
true,
|
| 780 |
);
|
800 |
);
|
| 781 |
}
|
801 |
}
|
| - |
|
802 |
|
| - |
|
803 |
|
| 782 |
}
|
804 |
}
|