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
        $this->log = array();
105
        $this->log = array();
Línea 106... Línea 106...
106
    }
106
    }
107
 
-
 
108
    /**
-
 
109
     * @deprecated since Moodle 3.7
-
 
110
     */
-
 
111
    public function get_analysables() {
-
 
112
        throw new \coding_exception('get_analysables() method has been removed and cannot be used any more.');
-
 
113
    }
-
 
114
 
107
 
115
    /**
108
    /**
116
     * Returns the list of analysable elements available on the site.
109
     * Returns the list of analysable elements available on the site.
117
     *
110
     *
118
     * A relatively complex SQL query should be set so that we take into account which analysable elements
111
     * A relatively complex SQL query should be set so that we take into account which analysable elements
Línea 430... Línea 423...
430
     * Overwrite it for specific restrictions in your analyser.
423
     * Overwrite it for specific restrictions in your analyser.
431
     *
424
     *
432
     * @param  string|null $query Context name filter.
425
     * @param  string|null $query Context name filter.
433
     * @return int[]
426
     * @return int[]
434
     */
427
     */
435
    public static function potential_context_restrictions(string $query = null) {
428
    public static function potential_context_restrictions(?string $query = null) {
436
        return \core_analytics\manager::get_potential_context_restrictions(static::context_restriction_support(), $query);
429
        return \core_analytics\manager::get_potential_context_restrictions(static::context_restriction_support(), $query);
437
    }
430
    }
Línea 438... Línea 431...
438
 
431
 
439
    /**
432
    /**