Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 14... Línea 14...
14
// You should have received a copy of the GNU General Public License
14
// You should have received a copy of the GNU General Public License
15
// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
15
// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
Línea 16... Línea 16...
16
 
16
 
Línea -... Línea 17...
-
 
17
namespace qbank_deletequestion;
-
 
18
 
17
namespace qbank_deletequestion;
19
use core_question\local\bank\view;
18
 
20
 
19
/**
21
/**
20
 * Class bulk_delete_action is the base class for delete bulk actions ui.
22
 * Class bulk_delete_action is the base class for delete bulk actions ui.
21
 *
23
 *
Línea 33... Línea 35...
33
    public function get_key(): string {
35
    public function get_key(): string {
34
        return 'deleteselected';
36
        return 'deleteselected';
35
    }
37
    }
Línea 36... Línea 38...
36
 
38
 
-
 
39
    public function get_bulk_action_url(): \moodle_url {
-
 
40
        $params = [];
-
 
41
        if (!$this->qbank->is_listing_specific_versions()) {
-
 
42
            $params['deleteall'] = 1;
37
    public function get_bulk_action_url(): \moodle_url {
43
        }
38
        return new \moodle_url('/question/bank/deletequestion/delete.php');
44
        return new \moodle_url('/question/bank/deletequestion/delete.php', $params);
Línea 39... Línea 45...
39
    }
45
    }
40
 
46
 
41
    public function get_bulk_action_capabilities(): ?array {
47
    public function get_bulk_action_capabilities(): ?array {