. /** * This file contains the form add/update oauth2 for backpack is connected. * * @package core_badges * @subpackage badges * @copyright 2020 Tung Thai * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @author Tung Thai */ namespace core_badges\oauth2; defined('MOODLE_INTERNAL') || die(); use core\persistent; /** * Class badge_backpack_oauth2 for backpack is connected. * * @copyright 2020 Tung Thai * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @author Tung Thai */ class badge_backpack_oauth2 extends persistent { /** * The table name. */ const TABLE = 'badge_backpack_oauth2'; /** * Return the definition of the properties of this model. * * @return array */ protected static function define_properties() { return array( 'userid' => array( 'type' => PARAM_INT, ), 'issuerid' => array( 'type' => PARAM_INT ), 'externalbackpackid' => array( 'type' => PARAM_INT ), 'token' => array( 'type' => PARAM_TEXT ), 'refreshtoken' => array( 'type' => PARAM_TEXT ), 'expires' => array( 'type' => PARAM_INT ), 'scope' => array( 'type' => PARAM_TEXT ), ); } }