Permalink
Browse files

first attempt on admin interface

  • Loading branch information...
1 parent 221733c commit 4e16b6a193a274d240f49142f557f45f64fa304c @splitbrain committed Nov 16, 2010
Showing with 51 additions and 3 deletions.
  1. +42 −2 admin.php
  2. +9 −1 lang/en/lang.php
View
@@ -17,15 +17,55 @@
class admin_plugin_bigbluebutton extends DokuWiki_Admin_Plugin {
- function getMenuSort() { return FIXME; }
- function forAdminOnly() { return false; }
+ function getMenuSort() {
+ return 553;
+ }
+
+ function forAdminOnly() {
+ return false;
+ }
function handle() {
}
function html() {
ptln('<h1>' . $this->getLang('menu') . '</h1>');
+
+ $this->_form();
}
+
+ function getTOC(){
+ global $conf;
+ $toc = array();
+
+
+ $files = glob($conf['metadir'].'/_bigbluebutton/*.bbbroom');
+ if(is_array($files)) foreach($files as $f){
+ $room = basename($f,'.bbbroom');
+ $toc[] = array(
+ 'link' => wl($ID,array('do'=>'admin','page'=>'bigbluebuttom',
+ 'room'=>$room,'sectok'=>getSecurityToken())),
+ 'title' => $room,
+ 'level' => 1,
+ 'type' => 'ul',
+ );
+
+ }
+ return $toc;
+ }
+
+ function _form(){
+ $form = new Doku_Form();
+
+ $form->startFieldset('Room');
+ foreach(array('welcome','number','voicebridge','logout','max','moderators','attendees') as $lbl){
+ $form->addElement(form_makeTextField('bbb['.$lbl.']', $bbb[$lbl], $this->getLang($lbl)));
+ $form->addElement('<br />');
+ }
+ $form->endFieldset();
+ $form->printForm();
+ }
+
}
// vim:ts=4:sw=4:et:enc=utf-8:
View
@@ -6,11 +6,19 @@
*/
// menu entry for admin plugins
-// $lang['menu'] = 'Your menu entry';
+$lang['menu'] = 'Big Blue Button Integration';
// custom language strings for the plugin
// $lang['fixme'] = 'FIXME';
+$lang['welcome'] = 'Welcome Message';
+$lang['number'] = 'Number to join by phone';
+$lang['voicebridge'] = 'Voice bridge setup';
+$lang['logout'] = 'Return URL';
+$lang['max'] = 'Maximum number of users';
+$lang['moderators'] = 'Moderators';
+$lang['attendees'] = 'Allowed Attendees';
+
//Setup VIM: ex: et ts=4 enc=utf-8 :

0 comments on commit 4e16b6a

Please sign in to comment.