Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 185... Línea 185...
185
     *
185
     *
186
     * @param array $actionnamefilter Limit the results obtained to this list of action names.
186
     * @param array $actionnamefilter Limit the results obtained to this list of action names.
187
     * @param int $userid the user id. Current user by default.
187
     * @param int $userid the user id. Current user by default.
188
     * @return array of actions.
188
     * @return array of actions.
189
     */
189
     */
190
    public function get_executed_actions(array $actionnamefilter = null, int $userid = 0): array {
190
    public function get_executed_actions(?array $actionnamefilter = null, int $userid = 0): array {
191
        global $USER, $DB;
191
        global $USER, $DB;
Línea 192... Línea 192...
192
 
192
 
193
        $conditions[] = "predictionid = :predictionid";
193
        $conditions[] = "predictionid = :predictionid";
194
        $params['predictionid'] = $this->get_prediction_data()->id;
194
        $params['predictionid'] = $this->get_prediction_data()->id;