Rename marketplace plugin to meetletacbfree (mdl_modules.name limit + CI table prefixes)
This commit is contained in:
+13
-13
@@ -17,14 +17,14 @@
|
||||
/**
|
||||
* Adobe Connect XML API client.
|
||||
*
|
||||
* @package mod_meetletacbmarketplace
|
||||
* @package mod_meetletacbfree
|
||||
* @copyright 2026 MeetLet
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
namespace mod_meetletacbmarketplace\api;
|
||||
namespace mod_meetletacbfree\api;
|
||||
|
||||
use mod_meetletacbmarketplace\local\config;
|
||||
use mod_meetletacbfree\local\config;
|
||||
use moodle_exception;
|
||||
use SimpleXMLElement;
|
||||
|
||||
@@ -58,11 +58,11 @@ class client {
|
||||
* @return self
|
||||
*/
|
||||
public function login_admin(): self {
|
||||
\mod_meetletacbmarketplace\registration\manager::require_registered();
|
||||
\mod_meetletacbfree\registration\manager::require_registered();
|
||||
$info = $this->request(['action' => 'common-info']);
|
||||
$this->cookie = (string)($info->common->cookie ?? '');
|
||||
if ($this->cookie === '') {
|
||||
throw new moodle_exception('erroremptyxml', 'meetletacbmarketplace');
|
||||
throw new moodle_exception('erroremptyxml', 'meetletacbfree');
|
||||
}
|
||||
|
||||
$result = $this->request([
|
||||
@@ -72,7 +72,7 @@ class client {
|
||||
]);
|
||||
|
||||
if ((string)$result->status['code'] !== 'ok') {
|
||||
throw new moodle_exception('errorlogin', 'meetletacbmarketplace');
|
||||
throw new moodle_exception('errorlogin', 'meetletacbfree');
|
||||
}
|
||||
|
||||
return $this;
|
||||
@@ -85,7 +85,7 @@ class client {
|
||||
* @return string BREEZESESSION cookie value
|
||||
*/
|
||||
public function login_external(string $connectlogin): string {
|
||||
\mod_meetletacbmarketplace\registration\manager::require_registered();
|
||||
\mod_meetletacbfree\registration\manager::require_registered();
|
||||
|
||||
$headername = config::get_http_auth_header();
|
||||
$candidates = array_values(array_unique(array_filter([
|
||||
@@ -113,7 +113,7 @@ class client {
|
||||
'adobe_code' => (string)($lastfail['code'] ?? ''),
|
||||
'adobe_subcode' => (string)($lastfail['subcode'] ?? 'no-login'),
|
||||
];
|
||||
throw new \mod_meetletacbmarketplace\local\usererror(
|
||||
throw new \mod_meetletacbfree\local\usererror(
|
||||
'sso_01',
|
||||
'errorhttpauth',
|
||||
array_filter($facts),
|
||||
@@ -176,7 +176,7 @@ class client {
|
||||
'login' => $login,
|
||||
'code' => $code,
|
||||
'subcode' => $sub,
|
||||
'xml' => \mod_meetletacbmarketplace\local\usererror::format_xml($raw),
|
||||
'xml' => \mod_meetletacbfree\local\usererror::format_xml($raw),
|
||||
];
|
||||
}
|
||||
|
||||
@@ -227,7 +227,7 @@ class client {
|
||||
if ($result === false) {
|
||||
$err = curl_error($ch);
|
||||
curl_close($ch);
|
||||
throw new moodle_exception('erroremptyxml', 'meetletacbmarketplace', '', null, $err);
|
||||
throw new moodle_exception('erroremptyxml', 'meetletacbfree', '', null, $err);
|
||||
}
|
||||
curl_close($ch);
|
||||
return (string)$result;
|
||||
@@ -266,12 +266,12 @@ class client {
|
||||
$body = ($xmlstart === false) ? $raw : substr($raw, $xmlstart);
|
||||
|
||||
if ($body === '' || $body === false) {
|
||||
throw new moodle_exception('erroremptyxml', 'meetletacbmarketplace');
|
||||
throw new moodle_exception('erroremptyxml', 'meetletacbfree');
|
||||
}
|
||||
|
||||
$sx = @simplexml_load_string($body);
|
||||
if ($sx === false) {
|
||||
throw new moodle_exception('erroremptyxml', 'meetletacbmarketplace');
|
||||
throw new moodle_exception('erroremptyxml', 'meetletacbfree');
|
||||
}
|
||||
|
||||
return $sx;
|
||||
@@ -377,7 +377,7 @@ class client {
|
||||
if ($result === false) {
|
||||
$err = curl_error($ch);
|
||||
curl_close($ch);
|
||||
throw new moodle_exception('erroremptyxml', 'meetletacbmarketplace', '', null, $err);
|
||||
throw new moodle_exception('erroremptyxml', 'meetletacbfree', '', null, $err);
|
||||
}
|
||||
curl_close($ch);
|
||||
return (string)$result;
|
||||
|
||||
Reference in New Issue
Block a user