Skip to content

Commit

Permalink
Release 2.0 : Beta version
Browse files Browse the repository at this point in the history
  • Loading branch information
jeph864 committed Jun 18, 2021
1 parent a07ee07 commit 8f52b10
Show file tree
Hide file tree
Showing 15 changed files with 200 additions and 979 deletions.
11 changes: 10 additions & 1 deletion Changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,13 @@ BigBLueButton-ILIAS Plugin Changelog
- improve German translations
2021 Version 1.0.15
- Add commas (a fix to the db error)
- update version
- update version
2012 Version 2.0_Beta
- Many Bug Fixes(commans in DB, Disable syntax chack whole saving a password,...)
- Enable phone calls
- Enable to upload presenations
- Display multiple formats
- Enable mp4 download in case available
- set the maximum number of participants
- set the maximum duration of the meeting
- Add a Guest link and a guest page
698 changes: 0 additions & 698 deletions classes/bbb-api/bbb_api.php

This file was deleted.

77 changes: 20 additions & 57 deletions classes/class.ilBigBlueButtonConfigGUI.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
<?php

include_once("./Services/Component/classes/class.ilPluginConfigGUI.php");
include_once("./Customizing/global/plugins/Services/Repository/RepositoryObject/BigBlueButton/classes/bbb-api/bbb_api.php");
require_once __DIR__ . "/../tools/vendor/autoload.php";

use srag\DevTools\DevToolsCtrl;
use srag\DIC\DICTrait;


/**
* BigBlueButton configuration class
Expand All @@ -16,38 +13,25 @@
*/
class ilBigBlueButtonConfigGUI extends ilPluginConfigGUI
{
use DICTrait;

const PLUGIN_CLASS_NAME = ilBigBlueButtonPlugin::class;

private $pl_object;
/**
* Handles all commmands, default is "configure"
*/
public function performCommand($cmd)
{
global $DIC;
$dic= $DIC;
$this->setTabs();
$next_class = $dic->ctrl()->getNextClass();
switch(strtolower($next_class)) {
case strtolower(DevToolsCtrl::class):
$dic->ctrl()->forwardCommand(new DevToolsCtrl($this, self::plugin()));
break;
default:
switch ($cmd) {
case "configure":
case "configureAdvanced":
case "save":
$this->$cmd();
break;


}
}


}
function performCommand($cmd)
{

switch ($cmd)
{
case "configure":
case "save":
$this->$cmd();
break;

}
}

/**
* Configure screen
Expand Down Expand Up @@ -114,6 +98,7 @@ public function initConfigurationForm()
// salt (text)
$pi = new ilPasswordInputGUI($pl->txt("salt"), "frmsalt");
$pi->setRequired(true);
$pi->setSkipSyntaxCheck(true);
$pi->setMaxLength(256);
$pi->setSize(40);
$pi->setRetype(false);
Expand Down Expand Up @@ -142,16 +127,6 @@ public function initConfigurationForm()

return $form;
}
public function setConfigTabs(){
global $DIC;
$ctrl = $DIC->ctrl();
$tabs = $DIC->tabs();
$this->pl_object = $this->getPluginObject();

$tabs->addTab('configure', $this->pl_object->txt('configurations'), $ctrl->getLinkTarget($this, 'configure'));
$tabs->addTab('advanced_configure', $this->pl_object->txt('advanced_configurations'), $ctrl->getLinkTarget($this, 'configureAdvanced'));
}

/**
* Save form input
*
Expand Down Expand Up @@ -203,9 +178,7 @@ public function save()
$tpl->setContent($form->getHtml());
}
}
public function configureAdvanced(){

}
private function checkUrl(string $url)
{
if (substr($url, -1)!="/") {
Expand All @@ -216,26 +189,16 @@ private function checkUrl(string $url)

private function isServerReachable(string $url, string $salt)
{
global $tpl;
$pl = $this->getPluginObject();

try {
$response = BigBlueButton::getMeetings($url, $salt);
} catch (Exception $e) {
include_once("./Customizing/global/plugins/Services/Repository/RepositoryObject/BigBlueButton/classes/class.ilBigBlueButtonProtocol.php");
$bbb_helper=new BBB($salt,$url);
try{
$bbb_helper->getApiVersion();
}catch (Exception $e) {
return false;
}
return true;
}

/**
*
*/
protected function setTabs() : void
{
$this->setConfigTabs();
}

DevToolsCtrl::addTabs(self::plugin());


}
}
Loading

0 comments on commit 8f52b10

Please sign in to comment.