Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 12... Línea 12...
12
// GNU General Public License for more details.
12
// GNU General Public License for more details.
13
//
13
//
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
 
-
 
17
/**
-
 
18
 * Admin setting for AWS regions.
-
 
19
 *
-
 
20
 * @package    core
-
 
21
 * @author     Dmitrii Metelkin <dmitriim@catalyst-au.net>
-
 
22
 * @copyright  2020 Catalyst IT
-
 
23
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
-
 
24
 */
-
 
25
 
16
 
Línea 26... Línea 17...
26
namespace core\aws;
17
namespace core\aws;
Línea 27... Línea 18...
27
 
18
 
Línea 33... Línea 24...
33
 * Admin setting for a list of AWS regions.
24
 * Admin setting for a list of AWS regions.
34
 *
25
 *
35
 * @package    core
26
 * @package    core
36
 * @copyright  2020 Catalyst IT
27
 * @copyright  2020 Catalyst IT
37
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
28
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
-
 
29
 * @deprecated Since Moodle 4.5
-
 
30
 * @todo       MDL-82459 Final deprecation in Moodle 5.0.
38
 */
31
 */
39
class admin_settings_aws_region extends \admin_setting_configtext {
32
class admin_settings_aws_region extends \admin_setting_configtext {
Línea 40... Línea 33...
40
 
33
 
41
    /**
34
    /**
42
     * Return part of form with setting.
35
     * Return part of form with setting.
43
     *
36
     *
44
     * @param mixed $data array or string depending on setting
37
     * @param mixed $data array or string depending on setting
45
     * @param string $query
38
     * @param string $query
-
 
39
     * @return string
46
     * @return string
40
     * @deprecated Since Moodle 4.5
-
 
41
     */
-
 
42
    #[\core\attribute\deprecated(
-
 
43
        'admin_settings_aws_region::output_html()',
-
 
44
        since: '4.5',
-
 
45
        mdl: 'MDL-80962',
47
     */
46
    )]
-
 
47
    public function output_html($data, $query='') {
48
    public function output_html($data, $query='') {
48
        \core\deprecation::emit_deprecation([$this, __FUNCTION__]);
Línea 49... Línea 49...
49
        global $CFG, $OUTPUT;
49
        global $CFG, $OUTPUT;
50
 
50
 
51
        $default = $this->get_defaultsetting();
51
        $default = $this->get_defaultsetting();