���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home3/cpr76684/public_html/types.tar
���ѧ٧ѧ�
database_table.php 0000644 00000006554 15152170055 0010203 0 ustar 00 <?php // This file is part of Moodle - http://moodle.org/ // // Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Moodle is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with Moodle. If not, see <http://www.gnu.org/licenses/>. /** * This file defines an item of metadata which encapsulates a database table. * * @package core_privacy * @copyright 2018 Zig Tan <zig@moodle.com> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ namespace core_privacy\local\metadata\types; defined('MOODLE_INTERNAL') || die(); /** * The database_table type. * * @copyright 2018 Zig Tan <zig@moodle.com> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class database_table implements type { /** * @var string Database table name. */ protected $name; /** * @var array Fields which contain user information within the table. */ protected $privacyfields; /** * @var string A description of what this table is used for. */ protected $summary; /** * Constructor to create a new database_table type. * * @param string $name The name of the database table being described. * @param array $privacyfields A list of fields with their description. * @param string $summary A description of what the table is used for. */ public function __construct($name, array $privacyfields = [], $summary = '') { if (debugging('', DEBUG_DEVELOPER)) { if (empty($privacyfields)) { debugging("Table '{$name}' was supplied without any fields.", DEBUG_DEVELOPER); } foreach ($privacyfields as $key => $field) { $teststring = clean_param($field, PARAM_STRINGID); if ($teststring !== $field) { debugging("Field '{$key}' passed for table '{$name}' has an invalid langstring identifier: '{$field}'", DEBUG_DEVELOPER); } } $teststring = clean_param($summary, PARAM_STRINGID); if ($teststring !== $summary) { debugging("Summary information for the '{$name}' table has an invalid langstring identifier: '{$summary}'", DEBUG_DEVELOPER); } } $this->name = $name; $this->privacyfields = $privacyfields; $this->summary = $summary; } /** * The name of the database table. * * @return string */ public function get_name() { return $this->name; } /** * The list of fields within the table which contain user data, with a description of each field. * * @return array */ public function get_privacy_fields() { return $this->privacyfields; } /** * A summary of what this table is used for. * * @return string */ public function get_summary() { return $this->summary; } } subsystem_link.php 0000644 00000005570 15152170055 0010340 0 ustar 00 <?php // This file is part of Moodle - http://moodle.org/ // // Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Moodle is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with Moodle. If not, see <http://www.gnu.org/licenses/>. /** * This file defines a link to another Moodle subsystem. * * @package core_privacy * @copyright 2018 Zig Tan <zig@moodle.com> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ namespace core_privacy\local\metadata\types; defined('MOODLE_INTERNAL') || die(); /** * The subsystem link type. * * @copyright 2018 Zig Tan <zig@moodle.com> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class subsystem_link implements type { /** * @var The name of the core subsystem to link. */ protected $name; /** * @var array The list of data names and descriptions. */ protected $privacyfields; /** * @var string A description of what this subsystem is used to store. */ protected $summary; /** * Constructor for the subsystem_link. * * @param string $name The name of the subsystem to link. * @param array $privacyfields An optional array of fields and their descriptions. * @param string $summary A description of what is stored within this subsystem. */ public function __construct($name, array $privacyfields = [], $summary = '') { if (debugging('', DEBUG_DEVELOPER)) { $teststring = clean_param($summary, PARAM_STRINGID); if ($teststring !== $summary) { debugging("Summary information for use of the '{$name}' subsystem " . "has an invalid langstring identifier: '{$summary}'", DEBUG_DEVELOPER); } } $this->name = $name; $this->privacyfields = $privacyfields; $this->summary = $summary; } /** * Function to return the name of this subsystem_link type. * * @return string $name */ public function get_name() { return $this->name; } /** * A subsystem link does not define any fields itself. * * @return array */ public function get_privacy_fields() : array { return $this->privacyfields; } /** * A summary of what this subsystem is used for. * * @return string $summary */ public function get_summary() { return $this->summary; } } plugintype_link.php 0000644 00000005432 15152170055 0010477 0 ustar 00 <?php // This file is part of Moodle - http://moodle.org/ // // Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Moodle is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with Moodle. If not, see <http://www.gnu.org/licenses/>. /** * This file defines a link to another Moodle plugin. * * @package core_privacy * @copyright 2018 Zig Tan <zig@moodle.com> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ namespace core_privacy\local\metadata\types; defined('MOODLE_INTERNAL') || die(); /** * The plugintype link. * * @copyright 2018 Zig Tan <zig@moodle.com> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class plugintype_link implements type { /** * @var The name of the core plugintype to link. */ protected $name; /** * @var array The list of data names and descriptions. */ protected $privacyfields; /** * @var string A description of what this plugintype is used to store. */ protected $summary; /** * Constructor for the plugintype_link. * * @param string $name The name of the plugintype to link. * @param string $summary A description of what is stored within this plugintype. */ public function __construct($name, $privacyfields = [], $summary = '') { if (debugging('', DEBUG_DEVELOPER)) { $teststring = clean_param($summary, PARAM_STRINGID); if ($teststring !== $summary) { debugging("Summary information for use of the '{$name}' plugintype " . "has an invalid langstring identifier: '{$summary}'", DEBUG_DEVELOPER); } } $this->name = $name; $this->privacyfields = $privacyfields; $this->summary = $summary; } /** * Function to return the name of this plugintype_link type. * * @return string $name */ public function get_name() { return $this->name; } /** * A plugintype link does not define any fields itself. * * @return array */ public function get_privacy_fields() : array { return $this->privacyfields; } /** * A summary of what this plugintype is used for. * * @return string $summary */ public function get_summary() { return $this->summary; } } type.php 0000644 00000003073 15152170055 0006242 0 ustar 00 <?php // This file is part of Moodle - http://moodle.org/ // // Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Moodle is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with Moodle. If not, see <http://www.gnu.org/licenses/>. /** * The base type interface which encapsulates a set of data held by a component with Moodle. * * @package core_privacy * @copyright 2018 Zig Tan <zig@moodle.com> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ namespace core_privacy\local\metadata\types; defined('MOODLE_INTERNAL') || die(); /** * The base type interface which all metadata types must implement. * * @copyright 2018 Zig Tan <zig@moodle.com> * @package core_privacy */ interface type { /** * Get the name describing this type. * * @return string */ public function get_name(); /** * A list of the fields and their usage description. * * @return array */ public function get_privacy_fields(); /** * A summary of what the metalink type is used for. * * @return string $summary */ public function get_summary(); } external_location.php 0000644 00000007134 15152170055 0010775 0 ustar 00 <?php // This file is part of Moodle - http://moodle.org/ // // Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Moodle is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with Moodle. If not, see <http://www.gnu.org/licenses/>. /** * This file defines an item of metadata which encapsulates data which is exported to an external location. * * @package core_privacy * @copyright 2018 Andrew Nicols <andrew@nicols.co.uk> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ namespace core_privacy\local\metadata\types; defined('MOODLE_INTERNAL') || die(); /** * The external_location type. * * @copyright 2018 Andrew Nicols <andrew@nicols.co.uk> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class external_location implements type { /** * @var string The name to describe the type of information exported. */ protected $name; /** * @var array The list of data names and descriptions exported. */ protected $privacyfields; /** * @var string A description of what this table is used for. * This is a language string identifier. */ protected $summary; /** * Constructor to create a new external_location type. * * @param string $name A name for the type of data exported. * @param array $privacyfields A list of fields with their description. * @param string $summary A description of what the table is used for. This is a language string identifier * within the component. */ public function __construct($name, array $privacyfields = [], $summary = '') { if (debugging('', DEBUG_DEVELOPER)) { if (empty($privacyfields)) { debugging("Location '{$name}' was supplied without any fields.", DEBUG_DEVELOPER); } foreach ($privacyfields as $key => $field) { $teststring = clean_param($field, PARAM_STRINGID); if ($teststring !== $field) { debugging("Field '{$key}' passed for location '{$name}' has an invalid langstring identifier: '{$field}'", DEBUG_DEVELOPER); } } $teststring = clean_param($summary, PARAM_STRINGID); if ($teststring !== $summary) { debugging("Summary information for the '{$name}' location has an invalid langstring identifier: '{$summary}'", DEBUG_DEVELOPER); } } $this->name = $name; $this->privacyfields = $privacyfields; $this->summary = $summary; } /** * The name to describe the type of information exported. * * @return string */ public function get_name() { return $this->name; } /** * Get the list of fields which contain user data, with a description of each field. * * @return array */ public function get_privacy_fields() { return $this->privacyfields; } /** * A summary of what this type of exported data is used for. * * @return string */ public function get_summary() { return $this->summary; } } user_preference.php 0000644 00000005167 15152170055 0010443 0 ustar 00 <?php // This file is part of Moodle - http://moodle.org/ // // Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Moodle is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with Moodle. If not, see <http://www.gnu.org/licenses/>. /** * This file defines an item of metadata which encapsulates a user's preferences. * * @package core_privacy * @copyright 2018 Andrew Nicols <andrew@nicols.co.uk> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ namespace core_privacy\local\metadata\types; defined('MOODLE_INTERNAL') || die(); /** * The user_preference type. * * @copyright 2018 Andrew Nicols <andrew@nicols.co.uk> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class user_preference implements type { /** * @var The name of this user preference. */ protected $name; /** * @var A description of what this user preference means. */ protected $summary; /** * Constructor to create a new user_preference types. * * @param string $name The name of the user preference. * @param string $summary A description of what the preference is used for. */ public function __construct($name, $summary = '') { if (debugging('', DEBUG_DEVELOPER)) { $teststring = clean_param($summary, PARAM_STRINGID); if ($teststring !== $summary) { debugging("Summary information for use of the '{$name}' subsystem " . " has an invalid langstring identifier: '{$summary}'", DEBUG_DEVELOPER); } } $this->name = $name; $this->summary = $summary; } /** * The name of the user preference. * * @return string */ public function get_name() { return $this->name; } /** * A user preference encapsulates a single field and has no sub-fields. * * @return array */ public function get_privacy_fields() { return null; } /** * A summary of what this user preference is used for. * * @return string */ public function get_summary() { return $this->summary; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0.01 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�