Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
mod_data\external\delete_saved_preset Class Reference

This is the external method for deleting a saved preset. More...

Inheritance diagram for mod_data\external\delete_saved_preset:

Static Public Member Functions

static execute (int $dataid, array $presetnames)
 Delete saved preset from the file system.
 
static execute_parameters ()
 Parameters.
 
static execute_returns ()
 Return.
 

Detailed Description

This is the external method for deleting a saved preset.

Since
Moodle 4.1
License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ execute()

static mod_data\external\delete_saved_preset::execute ( int $dataid,
array $presetnames )
static

Delete saved preset from the file system.

Parameters
int$dataidId of the data activity to check context and permissions.
array$presetnamesList of saved preset names to delete.
Return values
arrayTrue if the content has been deleted; false and the warning, otherwise.

◆ execute_parameters()

static mod_data\external\delete_saved_preset::execute_parameters ( )
static

Parameters.

Return values
external_function_parameters

◆ execute_returns()

static mod_data\external\delete_saved_preset::execute_returns ( )
static

Return.

Return values
external_single_structure

The documentation for this class was generated from the following file: