3 include_once(
"./Services/Object/classes/class.ilObjectGUI.php");
 
   23         public function __construct($a_data, $a_id, $a_call_by_reference = 
true, $a_prepare_output = 
true)
 
   28                 $this->lng->loadLanguageModule(
"blog");
 
   39                 $next_class = $this->ctrl->getNextClass($this);
 
   40                 $cmd = $this->ctrl->getCmd();
 
   51                         case 'ilpermissiongui':
 
   52                                 $this->tabs_gui->setTabActive(
'perm_settings');
 
   53                                 include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
 
   55                                 $this->ctrl->forwardCommand($perm_gui);
 
   61                                         $cmd = 
"editSettings";
 
   80                 if ($rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
 
   82                         $this->tabs_gui->addTarget(
"settings",
 
   83                                 $this->ctrl->getLinkTarget($this, 
"editSettings"),
 
   84                                 array(
"editSettings", 
"view"));
 
   87                 if ($rbacsystem->checkAccess(
'edit_permission',$this->object->getRefId()))
 
   89                         $this->tabs_gui->addTarget(
"perm_settings",
 
   90                                 $this->ctrl->getLinkTargetByClass(
'ilpermissiongui',
"perm"),
 
   91                                 array(),
'ilpermissiongui');
 
  103                 $this->tabs_gui->setTabActive(
'settings');      
 
  105                 if (!$ilSetting->get(
"disable_wsp_blogs"))
 
  118                 $this->tpl->setContent($a_form->getHTML());
 
  132                 if($form->checkInput())
 
  134                         $banner = (bool)$form->getInput(
"banner");
 
  137                         $blga_set->set(
"banner", $banner);
 
  138                         $blga_set->set(
"banner_width", (
int)$form->getInput(
"width"));
 
  139                         $blga_set->set(
"banner_height", (
int)$form->getInput(
"height"));
 
  140                         $blga_set->set(
"mask", (
bool)$form->getInput(
"mask"));
 
  143                         $ilCtrl->redirect($this, 
"editSettings");
 
  146                 $form->setValuesByPost();
 
  157                 $ilCtrl->redirect($this, 
"view");
 
  169                 include_once(
'Services/Form/classes/class.ilPropertyFormGUI.php');
 
  171                 $form->setFormAction($this->ctrl->getFormAction($this));
 
  172                 $form->setTitle($this->lng->txt(
'blog_settings'));
 
  173                 $form->addCommandButton(
'saveSettings',$this->lng->txt(
'save'));
 
  174                 $form->addCommandButton(
'cancel',$this->lng->txt(
'cancel'));
 
  177                 $banner->
setInfo($lng->txt(
"blog_preview_banner_info"));
 
  178                 $form->addItem($banner);                                
 
  180                 $width = 
new ilNumberInputGUI($lng->txt(
"blog_preview_banner_width"), 
"width");
 
  183                 $banner->addSubItem($width);
 
  185                 $height = 
new ilNumberInputGUI($lng->txt(
"blog_preview_banner_height"), 
"height");
 
  188                 $banner->addSubItem($height);
 
  191                 $banner->setChecked($blga_set->get(
"banner", 
false));           
 
  192                 if($blga_set->get(
"banner"))
 
  194                         $width->setValue($blga_set->get(
"banner_width"));
 
  195                         $height->setValue($blga_set->get(
"banner_height"));
 
  199                         $width->setValue(880);
 
  200                         $height->setValue(100);
 
  204                 $mask->
setInfo($lng->txt(
"blog_allow_html_info"));
 
  205                 $mask->setChecked($blga_set->get(
"mask", 
false));
 
  206                 $form->addItem($mask);