| Línea 62... |
Línea 62... |
| 62 |
*
|
62 |
*
|
| 63 |
* @param \context|null $context Context
|
63 |
* @param \context|null $context Context
|
| 64 |
* @param int $modifiedfrom Return only records modified after this date
|
64 |
* @param int $modifiedfrom Return only records modified after this date
|
| 65 |
* @return \moodle_recordset|null Recordset, or null if no possible activities in given context
|
65 |
* @return \moodle_recordset|null Recordset, or null if no possible activities in given context
|
| 66 |
*/
|
66 |
*/
|
| 67 |
public function get_document_recordset($modifiedfrom = 0, \context $context = null) {
|
67 |
public function get_document_recordset($modifiedfrom = 0, ?\context $context = null) {
|
| 68 |
global $DB;
|
68 |
global $DB;
|
| 69 |
list ($contextjoin, $contextparams) = $this->get_context_restriction_sql(
|
69 |
list ($contextjoin, $contextparams) = $this->get_context_restriction_sql(
|
| 70 |
$context, $this->get_module_name(), 'modtable');
|
70 |
$context, $this->get_module_name(), 'modtable');
|
| 71 |
if ($contextjoin === null) {
|
71 |
if ($contextjoin === null) {
|
| 72 |
return null;
|
72 |
return null;
|