芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/www/cepali/badges/classes/external/backpack_exporter.php
. /** * Contains competency class for displaying a badge backpack. * * @package core_badges * @copyright 2019 Damyon Wiese * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ namespace core_badges\external; defined('MOODLE_INTERNAL') || die(); use core\external\exporter; /** * Class for displaying a badge competency. * * @package core_badges * @copyright 2018 Dani Palou
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class backpack_exporter extends exporter { /** * Return the list of properties. * * @return array */ protected static function define_properties() { return [ 'id' => [ 'type' => PARAM_INT, 'description' => 'Backpack id', ], 'backpackapiurl' => [ 'type' => PARAM_URL, 'description' => 'Backpack API URL', ], 'backpackweburl' => [ 'type' => PARAM_URL, 'description' => 'Backpack Website URL', ], 'sitebackpack' => [ 'type' => PARAM_BOOL, 'description' => 'Is this the current site backpack', ], 'apiversion' => [ 'type' => PARAM_FLOAT, 'description' => 'API version supported', ], 'sortorder' => [ 'type' => PARAM_INT, 'description' => 'Sort order' ] ]; } }