original_string: public function get_document_recordset($modifiedfrom = 0, \context $context = null) {
          global $DB;
          list ($contextjoin, $contextparams) = $this->get_context_restriction_sql(
                  $context, $this->get_module_name(), 'modtable');
          if ($contextjoin === null) {
              return null;
          }
          return $DB->get_recordset_sql('SELECT modtable.* FROM {' . $this->get_module_name() .
                  '} modtable ' . $contextjoin . ' WHERE modtable.' . static::MODIFIED_FIELD_NAME .
                  ' >= ? ORDER BY modtable.' . static::MODIFIED_FIELD_NAME . ' ASC',
                  array_merge($contextparams, [$modifiedfrom]));
      }
code: public function get_document_recordset($modifiedfrom = 0, \context $context = null) {
          global $DB;
          list ($contextjoin, $contextparams) = $this->get_context_restriction_sql(
                  $context, $this->get_module_name(), 'modtable');
          if ($contextjoin === null) {
              return null;
          }
          return $DB->get_recordset_sql('SELECT modtable.* FROM {' . $this->get_module_name() .
                  '} modtable ' . $contextjoin . ' WHERE modtable.' . static::MODIFIED_FIELD_NAME .
                  ' >= ? ORDER BY modtable.' . static::MODIFIED_FIELD_NAME . ' ASC',
                  array_merge($contextparams, [$modifiedfrom]));
      }
code_tokens: public function get_document_recordset ( $ modifiedfrom = 0 , \ context $ context = null ) { global $ DB ; list ( $ contextjoin , $ contextparams ) = $ this -> get_context_restriction_sql ( $ context , $ this -> get_module_name ( ) , 'modtable' ) ; if ( $ contextjoin === null ) { return null ; } return $ DB -> get_recordset_sql ( 'SELECT modtable.* FROM {' . $ this -> get_module_name ( ) . '} modtable ' . $ contextjoin . ' WHERE modtable.' . static :: MODIFIED_FIELD_NAME . ' >= ? ORDER BY modtable.' . static :: MODIFIED_FIELD_NAME . ' ASC' , array_merge ( $ contextparams , [ $ modifiedfrom ] ) ) ; }
docstring: Returns recordset containing all activities within the given context.
  
  @param \context|null $context Context
  @param int $modifiedfrom Return only records modified after this date
  @return \moodle_recordset|null Recordset, or null if no possible activities in given context
docstring_tokens: Returns recordset containing all activities within the given context .