forked from SpenserJ/Moodle2-Panopto
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b4a4074
commit a34e1f5
Showing
9 changed files
with
128 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
// … | ||
|
||
namespace block_panopto\privacy; | ||
use core_privacy\local\metadata\collection; | ||
|
||
class provider implements | ||
// This plugin does store personal user data. | ||
\core_privacy\local\metadata\provider { | ||
|
||
public static function get_metadata(collection $collection) : collection { | ||
$collection->add_external_location_link('block_panopto', [ | ||
'username' => 'privacy:metadata:block_panopto:username', | ||
'firstname' => 'privacy:metadata:block_panopto:firstname', | ||
'lastname' => 'privacy:metadata:block_panopto:lastname', | ||
'email' => 'privacy:metadata:block_panopto:email', | ||
], 'privacy:metadata:bloack_panopto'); | ||
|
||
return $collection; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<?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 logic will get a list of all current Panopto folders on a Moodle server then it will go through each folder | ||
* and reprovision them and reinitialize the imports to that folders if the user has access to the folder. | ||
* This is needed for the Panopto Generation 1 to Generation 2 migration. | ||
* | ||
* @package block_panopto | ||
* @copyright Panopto 2009 - 2017 with contributions from Hittesh Ahuja | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | ||
*/ | ||
|
||
define('CLI_SCRIPT', 1); | ||
require_once(dirname(__FILE__) . '/../../../../config.php'); | ||
|
||
global $CFG; | ||
require_once("$CFG->libdir/clilib.php"); | ||
require_once("$CFG->libdir/formslib.php"); | ||
require_once(dirname(__FILE__) . '/../panopto_data.php'); | ||
|
||
$admin = get_admin(); | ||
if (!$admin) { | ||
mtrace("Error: No admin account was found"); | ||
die; | ||
} | ||
\core\session\manager::set_user(get_admin()); | ||
cli_heading('Removing all queued Panopto adhoc tasks'); | ||
|
||
function remove_panopto_adhoc_tasks() { | ||
panopto_data::remove_all_panopto_adhoc_tasks(); | ||
|
||
cli_writeln(get_string('removed_panopto_adhoc_tasks', 'block_panopto')); | ||
} | ||
|
||
|
||
remove_panopto_adhoc_tasks(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters