Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 104... Línea 104...
104
     *
104
     *
105
     * @param int $modifiedfrom Return only records modified after this date
105
     * @param int $modifiedfrom Return only records modified after this date
106
     * @param \context|null $context Context to find blocks within
106
     * @param \context|null $context Context to find blocks within
107
     * @return false|\moodle_recordset|null
107
     * @return false|\moodle_recordset|null
108
     */
108
     */
109
    public function get_document_recordset($modifiedfrom = 0, \context $context = null) {
109
    public function get_document_recordset($modifiedfrom = 0, ?\context $context = null) {
110
        global $DB;
110
        global $DB;
Línea 111... Línea 111...
111
 
111
 
112
        // Get context restrictions.
112
        // Get context restrictions.
Línea 285... Línea 285...
285
     * @param string $blocktable Alias of block_instances table
285
     * @param string $blocktable Alias of block_instances table
286
     * @param int $paramtype Type of SQL parameters to use (default question mark)
286
     * @param int $paramtype Type of SQL parameters to use (default question mark)
287
     * @return array Array with SQL and parameters
287
     * @return array Array with SQL and parameters
288
     * @throws \coding_exception If called with invalid params
288
     * @throws \coding_exception If called with invalid params
289
     */
289
     */
290
    protected function get_context_restriction_sql(\context $context = null, $blocktable = 'bi',
290
    protected function get_context_restriction_sql(?\context $context = null, $blocktable = 'bi',
291
            $paramtype = SQL_PARAMS_QM) {
291
            $paramtype = SQL_PARAMS_QM) {
292
        global $DB;
292
        global $DB;
Línea 293... Línea 293...
293
 
293
 
294
        if (!$context) {
294
        if (!$context) {