| Línea 52... |
Línea 52... |
| 52 |
*
|
52 |
*
|
| 53 |
* @param int $modifiedfrom timestamp
|
53 |
* @param int $modifiedfrom timestamp
|
| 54 |
* @param \context|null $context Restriction context
|
54 |
* @param \context|null $context Restriction context
|
| 55 |
* @return \moodle_recordset|null Recordset or null if no change possible
|
55 |
* @return \moodle_recordset|null Recordset or null if no change possible
|
| 56 |
*/
|
56 |
*/
|
| 57 |
public function get_document_recordset($modifiedfrom = 0, \context $context = null) {
|
57 |
public function get_document_recordset($modifiedfrom = 0, ?\context $context = null) {
|
| 58 |
global $DB;
|
58 |
global $DB;
|
| Línea 59... |
Línea 59... |
| 59 |
|
59 |
|
| 60 |
list ($contextjoin, $contextparams) = $this->get_course_level_context_restriction_sql($context, 'c', SQL_PARAMS_NAMED);
|
60 |
list ($contextjoin, $contextparams) = $this->get_course_level_context_restriction_sql($context, 'c', SQL_PARAMS_NAMED);
|
| 61 |
if ($contextjoin === null) {
|
61 |
if ($contextjoin === null) {
|